diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-10-05 09:32:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 09:32:00 (GMT) |
commit | dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e (patch) | |
tree | b5cd4ca84fa87dc7d91b6709b76d134a84aee6b2 /Include/ceval.h | |
parent | 9a7642667a71a27b38b96eb63df45f17f48b3467 (diff) | |
download | cpython-dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e.zip cpython-dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e.tar.gz cpython-dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e.tar.bz2 |
bpo-41936. Remove macros Py_ALLOW_RECURSION/Py_END_ALLOW_RECURSION (GH-22552)
Diffstat (limited to 'Include/ceval.h')
-rw-r--r-- | Include/ceval.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Include/ceval.h b/Include/ceval.h index 0f372e2..0f68766 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -67,14 +67,6 @@ PyAPI_FUNC(int) Py_GetRecursionLimit(void); PyAPI_FUNC(int) Py_EnterRecursiveCall(const char *where); PyAPI_FUNC(void) Py_LeaveRecursiveCall(void); -#define Py_ALLOW_RECURSION \ - do { unsigned char _old = PyThreadState_GET()->recursion_critical;\ - PyThreadState_GET()->recursion_critical = 1; - -#define Py_END_ALLOW_RECURSION \ - PyThreadState_GET()->recursion_critical = _old; \ - } while(0); - PyAPI_FUNC(const char *) PyEval_GetFuncName(PyObject *); PyAPI_FUNC(const char *) PyEval_GetFuncDesc(PyObject *); |