diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h index 7f2378ae76fe5c3..decafde474b029d 100644 --- a/Include/cpython/pystate.h +++ b/Include/cpython/pystate.h @@ -231,6 +231,9 @@ struct _ts { * if it is NULL. */ PyAPI_FUNC(PyThreadState *) PyThreadState_GetUnchecked(void); +// Alias kept for backward compatibility +#define _PyThreadState_UncheckedGet PyThreadState_GetUnchecked + // Disable tracing and profiling. PyAPI_FUNC(void) PyThreadState_EnterTracing(PyThreadState *tstate);