summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-02-16 07:50:00 (GMT)
committerGitHub <noreply@github.com>2021-02-16 07:50:00 (GMT)
commit871eb4237b9be95263ca13ba8856e78344eb9eba (patch)
tree25e8e7ac21e5656233c0111593e0de37e304ce65 /Include
parent8a8b5df93f379f561aab4f2fc5b2ad54f5009f7a (diff)
downloadcpython-871eb4237b9be95263ca13ba8856e78344eb9eba.zip
cpython-871eb4237b9be95263ca13ba8856e78344eb9eba.tar.gz
cpython-871eb4237b9be95263ca13ba8856e78344eb9eba.tar.bz2
bpo-40170: Convert PyDescr_IsData() to static inline function (GH-24535)
Diffstat (limited to 'Include')
-rw-r--r--Include/descrobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/descrobject.h b/Include/descrobject.h
index ead269d..703bc8f 100644
--- a/Include/descrobject.h
+++ b/Include/descrobject.h
@@ -93,7 +93,7 @@ PyAPI_FUNC(PyObject *) PyDescr_NewGetSet(PyTypeObject *,
#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject *) PyDescr_NewWrapper(PyTypeObject *,
struct wrapperbase *, void *);
-#define PyDescr_IsData(d) (Py_TYPE(d)->tp_descr_set != NULL)
+PyAPI_FUNC(int) PyDescr_IsData(PyObject *);
#endif
PyAPI_FUNC(PyObject *) PyDictProxy_New(PyObject *);