diff options
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 f289471be2..a9929f5f19 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -140,8 +140,12 @@ PyAPI_FUNC(void) _PyErr_ChainExceptions(PyObject *, PyObject *, PyObject *); #define PyExceptionInstance_Check(x) \ PyType_FastSubclass((x)->ob_type, Py_TPFLAGS_BASE_EXC_SUBCLASS) +#ifndef Py_LIMITED_API #define PyExceptionClass_Name(x) \ ((char *)(((PyTypeObject*)(x))->tp_name)) +#else + PyAPI_FUNC(char *) PyExceptionClass_Name(PyObject*); +#endif #define PyExceptionInstance_Class(x) ((PyObject*)((x)->ob_type)) |