From 6e97c8a23a717928081a47c3e5bfefe8a94a0bbe Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 15 Nov 2023 18:32:50 +0100 Subject: [PATCH] gh-112026: Add again _PyThreadState_UncheckedGet() function Add again the private _PyThreadState_UncheckedGet() function as an alias to the new public PyThreadState_GetUnchecked() function. --- Include/cpython/pystate.h | 3 +++ 1 file changed, 3 insertions(+) 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);