mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-31890: define METH_STACKLESS (#4159)
Add METH_STACKLESS to prevent future collisions.
This commit is contained in:
parent
4e38d71a2b
commit
9e33973332
1 changed files with 9 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue