diff options
author | Victor Stinner <vstinner@python.org> | 2020-05-07 15:42:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-07 15:42:33 +0200 |
commit | 8963a7f1f84a05412178b56629508b660d38861b (patch) | |
tree | 32a18b25fa9f7d17bc7479f49f8d1695dfa0ff77 /Include/cpython | |
parent | e1becf46b4e3ba6d7d32ebf4bbd3e0804766a423 (diff) | |
download | cpython-git-8963a7f1f84a05412178b56629508b660d38861b.tar.gz |
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>
Diffstat (limited to 'Include/cpython')
-rw-r--r-- | Include/cpython/pyerrors.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/pyerrors.h b/Include/cpython/pyerrors.h index cdd052026c..dd3c2caa0c 100644 --- a/Include/cpython/pyerrors.h +++ b/Include/cpython/pyerrors.h @@ -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) */ |