summaryrefslogtreecommitdiffstats
path: root/Include/pylifecycle.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-10-07 15:59:16 (GMT)
committerGitHub <noreply@github.com>2023-10-07 15:59:16 (GMT)
commit64f158e7b09e67d0bf5c8603ff88c86ed4e8f8fd (patch)
tree940c5b5e0e1d4bc2ba8fba1de7dc68c3d1c2e89d /Include/pylifecycle.h
parentb987fdb19b981ef6e7f71b41790b5ed4e2064646 (diff)
downloadcpython-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.h4
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"