Skip to content

Commit 7256fa3

Browse files
committed
Add to the limited C API
1 parent bac1060 commit 7256fa3

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

Doc/data/stable_abi.dat

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/pystate.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ PyAPI_FUNC(PyGILState_STATE) PyGILState_Ensure(void);
111111
*/
112112
PyAPI_FUNC(void) PyGILState_Release(PyGILState_STATE);
113113

114+
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030e0000
115+
/* New in 3.14 */
116+
PyAPI_FUNC(int) PyGILState_EnsureOrFail(PyGILState_STATE *state);
117+
#endif
118+
114119
/* Helper/diagnostic function - get the current thread state for
115120
this thread. May return NULL if no GILState API has been used
116121
on the current thread. Note that the main thread always has such a

Lib/test/test_stable_abi_ctypes.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Misc/stable_abi.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2545,3 +2545,5 @@
25452545
added = '3.14'
25462546
[function.Py_PACK_VERSION]
25472547
added = '3.14'
2548+
[function.PyGILState_EnsureOrFail]
2549+
added = '3.14'

PC/python3dll.c

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)