diff options
author | Victor Stinner <vstinner@python.org> | 2023-10-07 15:59:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-07 15:59:16 (GMT) |
commit | 64f158e7b09e67d0bf5c8603ff88c86ed4e8f8fd (patch) | |
tree | 940c5b5e0e1d4bc2ba8fba1de7dc68c3d1c2e89d /Include/pylifecycle.h | |
parent | b987fdb19b981ef6e7f71b41790b5ed4e2064646 (diff) | |
download | cpython-64f158e7b09e67d0bf5c8603ff88c86ed4e8f8fd.zip cpython-64f158e7b09e67d0bf5c8603ff88c86ed4e8f8fd.tar.gz cpython-64f158e7b09e67d0bf5c8603ff88c86ed4e8f8fd.tar.bz2 |
gh-110397: Add Py_IsFinalizing() to the stable ABI (#110441)
Diffstat (limited to 'Include/pylifecycle.h')
-rw-r--r-- | Include/pylifecycle.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/pylifecycle.h b/Include/pylifecycle.h index 34f32a5..c1e2bc5 100644 --- a/Include/pylifecycle.h +++ b/Include/pylifecycle.h @@ -60,6 +60,10 @@ PyAPI_FUNC(PyOS_sighandler_t) PyOS_setsig(int, PyOS_sighandler_t); PyAPI_DATA(const unsigned long) Py_Version; #endif +#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030D0000 +PyAPI_FUNC(int) Py_IsFinalizing(void); +#endif + #ifndef Py_LIMITED_API # define Py_CPYTHON_PYLIFECYCLE_H # include "cpython/pylifecycle.h" |