diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-03-21 09:36:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-21 09:36:18 (GMT) |
commit | 5c471f3f2a74f4ae7764ed025d2ef077d692d608 (patch) | |
tree | 05ac6d97cf12070adf7d5512a6e913c0a9c0f290 /Include | |
parent | 82eb9469e717e0047543732287a8342e646c2262 (diff) | |
download | cpython-5c471f3f2a74f4ae7764ed025d2ef077d692d608.zip cpython-5c471f3f2a74f4ae7764ed025d2ef077d692d608.tar.gz cpython-5c471f3f2a74f4ae7764ed025d2ef077d692d608.tar.bz2 |
gh-102755: PyErr_DisplayException only in ABI >= 3.12. Tests cover PyErr_Display as well (GH-102849)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pythonrun.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/pythonrun.h b/Include/pythonrun.h index 41d82e8..154c745 100644 --- a/Include/pythonrun.h +++ b/Include/pythonrun.h @@ -12,7 +12,10 @@ PyAPI_FUNC(PyObject *) Py_CompileString(const char *, const char *, int); PyAPI_FUNC(void) PyErr_Print(void); PyAPI_FUNC(void) PyErr_PrintEx(int); PyAPI_FUNC(void) PyErr_Display(PyObject *, PyObject *, PyObject *); + +#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030C0000 PyAPI_FUNC(void) PyErr_DisplayException(PyObject *); +#endif /* Stuff with no proper home (yet) */ |