summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-02-05 13:24:17 (GMT)
committerGitHub <noreply@github.com>2020-02-05 13:24:17 (GMT)
commit509dd90f4684e40af3105dd3e754fa4b9c1530c1 (patch)
treea16ee3a67c7473f334efc184c7cf81fbe028e02e /Include/cpython
parentf58bd7c1693fe041f7296a5778d0a11287895648 (diff)
downloadcpython-509dd90f4684e40af3105dd3e754fa4b9c1530c1.zip
cpython-509dd90f4684e40af3105dd3e754fa4b9c1530c1.tar.gz
cpython-509dd90f4684e40af3105dd3e754fa4b9c1530c1.tar.bz2
bpo-39542: Convert PyType_Check() to static inline function (GH-18364)
Convert PyType_HasFeature(), PyType_Check() and PyType_CheckExact() macros to static inline functions.
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/object.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/Include/cpython/object.h b/Include/cpython/object.h
index e36f824..0b5260e 100644
--- a/Include/cpython/object.h
+++ b/Include/cpython/object.h
@@ -341,8 +341,6 @@ PyAPI_FUNC(int)
_PyObject_GenericSetAttrWithDict(PyObject *, PyObject *,
PyObject *, PyObject *);
-#define PyType_HasFeature(t,f) (((t)->tp_flags & (f)) != 0)
-
PyAPI_FUNC(PyObject *) _PyObject_FunctionStr(PyObject *);
/* Safely decref `op` and set `op` to `op2`.