summaryrefslogtreecommitdiffstats
path: root/Include/ceval.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-10-05 09:32:00 (GMT)
committerGitHub <noreply@github.com>2020-10-05 09:32:00 (GMT)
commitdcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e (patch)
treeb5cd4ca84fa87dc7d91b6709b76d134a84aee6b2 /Include/ceval.h
parent9a7642667a71a27b38b96eb63df45f17f48b3467 (diff)
downloadcpython-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.h8
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 *);