summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2014-02-04 08:33:05 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2014-02-04 08:33:05 (GMT)
commitca7b04644ce7cbc828a28f47be421029acb38eb7 (patch)
tree0a5218b57db2d7b322b1dec957872319f3bed533 /Include
parent83bdfa08f7747466d0925323a7d94a26470fcd32 (diff)
downloadcpython-ca7b04644ce7cbc828a28f47be421029acb38eb7.zip
cpython-ca7b04644ce7cbc828a28f47be421029acb38eb7.tar.gz
cpython-ca7b04644ce7cbc828a28f47be421029acb38eb7.tar.bz2
Issue #17162: Add PyType_GetSlot.
Diffstat (limited to 'Include')
-rw-r--r--Include/object.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h
index 05bffc9..68ca7b4 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -439,6 +439,9 @@ PyAPI_FUNC(PyObject*) PyType_FromSpec(PyType_Spec*);
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
PyAPI_FUNC(PyObject*) PyType_FromSpecWithBases(PyType_Spec*, PyObject*);
#endif
+#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03040000
+PyAPI_FUNC(void*) PyType_GetSlot(PyTypeObject*, int);
+#endif
#ifndef Py_LIMITED_API
/* The *real* layout of a type object when allocated on the heap */