summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-03-16 20:37:11 (GMT)
committerGitHub <noreply@github.com>2024-03-16 20:37:11 (GMT)
commit5e0a070dfe33530756fa2811b76bf959b9616590 (patch)
treea32c2f68b8d41082c1356b486ec9b2aa2b7eb198 /Include/cpython
parent259dbc448dabc1ad95fcf6f70eff4b6b5355e71c (diff)
downloadcpython-5e0a070dfe33530756fa2811b76bf959b9616590.zip
cpython-5e0a070dfe33530756fa2811b76bf959b9616590.tar.gz
cpython-5e0a070dfe33530756fa2811b76bf959b9616590.tar.bz2
gh-116809: Restore removed _PyErr_ChainExceptions1() function (#116900)
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/pyerrors.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/cpython/pyerrors.h b/Include/cpython/pyerrors.h
index 32c5884..42b4b03 100644
--- a/Include/cpython/pyerrors.h
+++ b/Include/cpython/pyerrors.h
@@ -88,6 +88,10 @@ typedef PyOSErrorObject PyEnvironmentErrorObject;
typedef PyOSErrorObject PyWindowsErrorObject;
#endif
+/* Context manipulation (PEP 3134) */
+
+PyAPI_FUNC(void) _PyErr_ChainExceptions1(PyObject *);
+
/* In exceptions.c */
PyAPI_FUNC(PyObject*) PyUnstable_Exc_PrepReraiseStar(