summaryrefslogtreecommitdiff
path: root/Include/pyerrors.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-06-11 15:01:47 +0300
committerGitHub <noreply@github.com>2018-06-11 15:01:47 +0300
commit5cbefa99198729a1d4e93d93f890c066039ee1d2 (patch)
tree76cff6b51ef8c34fa9523ae86278e6254572a08c /Include/pyerrors.h
parent9d6171ded5c56679bc295bacffc718472bcb706b (diff)
downloadcpython-git-5cbefa99198729a1d4e93d93f890c066039ee1d2.tar.gz
Clean up after bpo-33738. (GH-7627)
* Add declarations even if they are overridden by macros. * Make the declaration and the definition of PyExceptionClass_Name consistent.
Diffstat (limited to 'Include/pyerrors.h')
-rw-r--r--Include/pyerrors.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index 5fd981c2ba..5b626584bb 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -140,11 +140,10 @@ PyAPI_FUNC(void) _PyErr_ChainExceptions(PyObject *, PyObject *, PyObject *);
#define PyExceptionInstance_Check(x) \
PyType_FastSubclass((x)->ob_type, Py_TPFLAGS_BASE_EXC_SUBCLASS)
+PyAPI_FUNC(char *) PyExceptionClass_Name(PyObject *);
#ifndef Py_LIMITED_API
#define PyExceptionClass_Name(x) \
((char *)(((PyTypeObject *)(x))->tp_name))
-#else
- PyAPI_FUNC(const char *) PyExceptionClass_Name(PyObject *);
#endif
#define PyExceptionInstance_Class(x) ((PyObject*)((x)->ob_type))