diff options
| author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-04-15 19:57:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-15 19:57:47 +0100 |
| commit | 5d421d7342fc0d278c129c05bea7028430e94a4e (patch) | |
| tree | c5bb38c41d86c6289dfcb1f7937f2df07305f4d8 /Include/pyerrors.h | |
| parent | c06a4ffe818feddef3b5083d9746a1c0b82c84ab (diff) | |
| download | cpython-git-5d421d7342fc0d278c129c05bea7028430e94a4e.tar.gz | |
gh-90501: Add PyErr_GetHandledException and PyErr_SetHandledException (GH-30531)
Diffstat (limited to 'Include/pyerrors.h')
| -rw-r--r-- | Include/pyerrors.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h index 77d791427d..34e3de3328 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -18,6 +18,10 @@ PyAPI_FUNC(PyObject *) PyErr_Occurred(void); PyAPI_FUNC(void) PyErr_Clear(void); PyAPI_FUNC(void) PyErr_Fetch(PyObject **, PyObject **, PyObject **); PyAPI_FUNC(void) PyErr_Restore(PyObject *, PyObject *, PyObject *); +#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030b0000 +PyAPI_FUNC(PyObject*) PyErr_GetHandledException(void); +PyAPI_FUNC(void) PyErr_SetHandledException(PyObject *); +#endif #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000 PyAPI_FUNC(void) PyErr_GetExcInfo(PyObject **, PyObject **, PyObject **); PyAPI_FUNC(void) PyErr_SetExcInfo(PyObject *, PyObject *, PyObject *); |
