1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#ifndef Py_PYLIFECYCLE_H
#define Py_PYLIFECYCLE_H
#ifdef __cplusplus
extern "C" {
#endif
/* Restore signals that the interpreter has called SIG_IGN on to SIG_DFL. */
#ifndef Py_LIMITED_API
PyAPI_FUNC(void) _Py_RestoreSignals(void);
#endif
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030B0000
PyAPI_DATA(const unsigned long) Py_Version;
#endif
/* In Python <= 3.6 there is a variable _Py_Finalizing of type
'PyThreadState *'. Emulate it with a macro. */
#define _Py_Finalizing \
(_Py_IsFinalizing() ? _PyThreadState_UncheckedGet() : NULL)
#ifdef __cplusplus
}
#endif
#endif /* !Py_PYLIFECYCLE_H */
|