summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-11-15 18:15:03 (GMT)
committerGitHub <noreply@github.com>2023-11-15 18:15:03 (GMT)
commit7e2308aaa29419eadeef3a349c7c4d78e2cbc989 (patch)
tree17973dd61146738c2b8bbac793168f4c09fa88b6 /Include/cpython
parente5dfcc2b6e1c8450e47acbc6e7d3fd3380ef0f03 (diff)
downloadcpython-7e2308aaa29419eadeef3a349c7c4d78e2cbc989.zip
cpython-7e2308aaa29419eadeef3a349c7c4d78e2cbc989.tar.gz
cpython-7e2308aaa29419eadeef3a349c7c4d78e2cbc989.tar.bz2
gh-112026: Add again _PyThreadState_UncheckedGet() function (#112121)
Add again the private _PyThreadState_UncheckedGet() function as an alias to the new public PyThreadState_GetUnchecked() function.
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/pystate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h
index 7f2378a..decafde 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);