summaryrefslogtreecommitdiffstats
path: root/Include/methodobject.h
diff options
context:
space:
mode:
authorAnselm Kruis <a.kruis@science-computing.de>2017-11-02 22:54:57 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-11-02 22:54:57 (GMT)
commit9e3397333278f973a11d933c27a69af250e4acf0 (patch)
tree3ee6e4001747104b6ae62fa3a773a5d10c16167e /Include/methodobject.h
parent4e38d71a2b7b606fb1b0078c2d7014fc24044dac (diff)
downloadcpython-9e3397333278f973a11d933c27a69af250e4acf0.zip
cpython-9e3397333278f973a11d933c27a69af250e4acf0.tar.gz
cpython-9e3397333278f973a11d933c27a69af250e4acf0.tar.bz2
bpo-31890: define METH_STACKLESS (#4159)
Add METH_STACKLESS to prevent future collisions.
Diffstat (limited to 'Include/methodobject.h')
-rw-r--r--Include/methodobject.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/methodobject.h b/Include/methodobject.h
index ec67dc2..66e6a55 100644
--- a/Include/methodobject.h
+++ b/Include/methodobject.h
@@ -89,7 +89,16 @@ PyAPI_FUNC(PyObject *) PyCFunction_NewEx(PyMethodDef *, PyObject *,
#ifndef Py_LIMITED_API
#define METH_FASTCALL 0x0080
+#endif
+
+/* This bit is preserved for Stackless Python */
+#ifdef STACKLESS
+#define METH_STACKLESS 0x0100
+#else
+#define METH_STACKLESS 0x0000
+#endif
+#ifndef Py_LIMITED_API
typedef struct {
PyObject_HEAD
PyMethodDef *m_ml; /* Description of the C function to call */