summaryrefslogtreecommitdiff
path: root/Include/cpython
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-05-07 15:42:33 +0200
committerGitHub <noreply@github.com>2020-05-07 15:42:33 +0200
commit8963a7f1f84a05412178b56629508b660d38861b (patch)
tree32a18b25fa9f7d17bc7479f49f8d1695dfa0ff77 /Include/cpython
parente1becf46b4e3ba6d7d32ebf4bbd3e0804766a423 (diff)
downloadcpython-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.h2
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) */