https://github.com/python/cpython/commit/9c4ff8a615af3f1e746fcfe5cdb6af5ddfb3b6a7
commit: 9c4ff8a615af3f1e746fcfe5cdb6af5ddfb3b6a7
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2025-11-27T12:22:15Z
summary:
gh-130396: Export _Py_ReachedRecursionLimitWithMargin() (#142012)
test_peg_generator needs the function.
files:
M Include/internal/pycore_ceval.h
diff --git a/Include/internal/pycore_ceval.h b/Include/internal/pycore_ceval.h
index fa2a67ff95734a..9d81833a2343f2 100644
--- a/Include/internal/pycore_ceval.h
+++ b/Include/internal/pycore_ceval.h
@@ -263,7 +263,8 @@ static inline int _Py_ReachedRecursionLimit(PyThreadState
*tstate) {
#endif
}
-extern int _Py_ReachedRecursionLimitWithMargin(
+// Export for test_peg_generator
+PyAPI_FUNC(int) _Py_ReachedRecursionLimitWithMargin(
PyThreadState *tstate,
int margin_count);
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]