mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-110397: Add Py_IsFinalizing() to the stable ABI (#110441)
This commit is contained in:
parent
b987fdb19b
commit
64f158e7b0
6 changed files with 9 additions and 2 deletions
|
|
@ -81,5 +81,3 @@ PyAPI_FUNC(PyStatus) Py_NewInterpreterFromConfig(
|
|||
typedef void (*atexit_datacallbackfunc)(void *);
|
||||
PyAPI_FUNC(int) PyUnstable_AtExit(
|
||||
PyInterpreterState *, atexit_datacallbackfunc, void *);
|
||||
|
||||
PyAPI_FUNC(int) Py_IsFinalizing(void);
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue