mirror of https://github.com/python/cpython
bpo-40545: Export _PyErr_GetTopmostException() function (GH-19978)
Declare _PyErr_GetTopmostException() with PyAPI_FUNC() to properly export the function in the C API. The function remains private ("_Py") prefix. Co-Authored-By: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
e1becf46b4
commit
8963a7f1f8
|
@ -75,7 +75,7 @@ typedef PyOSErrorObject PyWindowsErrorObject;
|
|||
/* Error handling definitions */
|
||||
|
||||
PyAPI_FUNC(void) _PyErr_SetKeyError(PyObject *);
|
||||
_PyErr_StackItem *_PyErr_GetTopmostException(PyThreadState *tstate);
|
||||
PyAPI_FUNC(_PyErr_StackItem*) _PyErr_GetTopmostException(PyThreadState *tstate);
|
||||
PyAPI_FUNC(void) _PyErr_GetExcInfo(PyThreadState *, PyObject **, PyObject **, PyObject **);
|
||||
|
||||
/* Context manipulation (PEP 3134) */
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
Declare ``_PyErr_GetTopmostException()`` with ``PyAPI_FUNC()`` to properly
|
||||
export the function in the C API. The function remains private (``_Py``)
|
||||
prefix.
|
Loading…
Reference in New Issue