Skip to content

Commit

Permalink
pythongh-112026: Add again _PyThreadState_UncheckedGet() function
Browse files Browse the repository at this point in the history
Add again the private _PyThreadState_UncheckedGet() function as an
alias to the new public PyThreadState_GetUnchecked() function.
  • Loading branch information
vstinner committed Nov 15, 2023
1 parent bd2f148 commit 6e97c8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Include/cpython/pystate.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6e97c8a

Please sign in to comment.