gh-130396: Export _Py_ReachedRecursionLimitWithMargin() (#142012)

test_peg_generator needs the function.
This commit is contained in:
Victor Stinner 2025-11-27 13:22:15 +01:00 committed by GitHub
parent d5d9e89dde
commit 9c4ff8a615
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);