From 224481a8c988fca12f488544edd2f01c0af2a91d Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 13 Mar 2020 10:19:38 +0100 Subject: bpo-39947: Move Py_EnterRecursiveCall() to internal C API (GH-18972) Move the static inline function flavor of Py_EnterRecursiveCall() and Py_LeaveRecursiveCall() to the internal C API: they access PyThreadState attributes. The limited C API provides regular functions which hide implementation details. --- Objects/object.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Objects/object.c') diff --git a/Objects/object.c b/Objects/object.c index bb47cfa858..72c4189d34 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -2,6 +2,7 @@ /* Generic object operations; and implementation of None */ #include "Python.h" +#include "pycore_ceval.h" // _Py_EnterRecursiveCall() #include "pycore_context.h" #include "pycore_initconfig.h" #include "pycore_object.h" -- cgit v1.2.1