summaryrefslogtreecommitdiff
path: root/Include/methodobject.h
diff options
context:
space:
mode:
authorAnselm Kruis <a.kruis@science-computing.de>2017-11-02 23:54:57 +0100
committerVictor Stinner <victor.stinner@gmail.com>2017-11-02 15:54:57 -0700
commit9e3397333278f973a11d933c27a69af250e4acf0 (patch)
tree3ee6e4001747104b6ae62fa3a773a5d10c16167e /Include/methodobject.h
parent4e38d71a2b7b606fb1b0078c2d7014fc24044dac (diff)
downloadcpython-git-9e3397333278f973a11d933c27a69af250e4acf0.tar.gz
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 ec67dc2eb0..66e6a554b1 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 */