#ifndef Py_INTERNAL_RUNTIME_H
#define Py_INTERNAL_RUNTIME_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef Py_BUILD_CORE
# error "this header requires Py_BUILD_CORE define"
#endif
#include "pycore_atexit.h"
#include "pycore_audit.h"
#include "pycore_ceval_state.h"
#include "pycore_crossinterp.h"
#include "pycore_debug_offsets.h"
#include "pycore_faulthandler.h"
#include "pycore_floatobject.h"
#include "pycore_import.h"
#include "pycore_interp.h"
#include "pycore_object_state.h"
#include "pycore_parser.h"
#include "pycore_pyhash.h"
#include "pycore_pymem.h"
#include "pycore_pythread.h"
#include "pycore_signal.h"
#include "pycore_tracemalloc.h"
#include "pycore_typeobject.h"
#include "pycore_unicodeobject.h"
_PyRuntimeState;
PyAPI_DATA(_PyRuntimeState) _PyRuntime;
extern PyStatus _PyRuntimeState_Init(_PyRuntimeState *runtime);
extern void _PyRuntimeState_Fini(_PyRuntimeState *runtime);
#ifdef HAVE_FORK
extern PyStatus _PyRuntimeState_ReInitThreads(_PyRuntimeState *runtime);
#endif
extern PyStatus _PyRuntime_Initialize(void);
extern void _PyRuntime_Finalize(void);
static inline PyThreadState*
_PyRuntimeState_GetFinalizing(_PyRuntimeState *runtime) { … }
static inline unsigned long
_PyRuntimeState_GetFinalizingID(_PyRuntimeState *runtime) { … }
static inline void
_PyRuntimeState_SetFinalizing(_PyRuntimeState *runtime, PyThreadState *tstate) { … }
#ifdef __cplusplus
}
#endif
#endif