Move the private function to the internal C API (pycore_ceval.h).
PyAPI_FUNC(void) _PyTrash_thread_deposit_object(PyThreadState *tstate, PyObject *op);
PyAPI_FUNC(void) _PyTrash_thread_destroy_chain(PyThreadState *tstate);
-PyAPI_FUNC(int) _Py_ReachedRecursionLimitWithMargin(PyThreadState *tstate, int margin_count);
-
/* For backwards compatibility with the old trashcan mechanism */
#define Py_TRASHCAN_BEGIN(op, dealloc)
#define Py_TRASHCAN_END
#endif
}
+extern int _Py_ReachedRecursionLimitWithMargin(
+ PyThreadState *tstate,
+ int margin_count);
+
static inline void _Py_LeaveRecursiveCall(void) {
}
// @generated by pegen from python.gram
#include "pegen.h"
+#include "pycore_ceval.h"
#if defined(Py_DEBUG) && defined(Py_BUILD_CORE)
# define D(x) if (p->debug) { x; }
EXTENSION_PREFIX = """\
#include "pegen.h"
+#include "pycore_ceval.h"
#if defined(Py_DEBUG) && defined(Py_BUILD_CORE)
# define D(x) if (p->debug) { x; }