cpython/Include/internal/pycore_warnings.h
Neil Schemenauer 81fe70e966
[3.15] gh-158973: Reset the warnings lock after fork in the child (gh-158974) (gh-159614)
Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
2026-10-19 14:54:15 -07:00

26 lines
653 B
C

#ifndef Py_INTERNAL_WARNINGS_H
#define Py_INTERNAL_WARNINGS_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef Py_BUILD_CORE
# error "this header requires Py_BUILD_CORE define"
#endif
extern int _PyWarnings_InitState(PyInterpreterState *interp);
extern PyObject* _PyWarnings_Init(void);
#ifdef HAVE_FORK
extern void _PyWarnings_BeforeFork(PyInterpreterState *interp);
extern void _PyWarnings_AfterFork(PyInterpreterState *interp);
#endif
extern void _PyErr_WarnUnawaitedCoroutine(PyObject *coro);
extern void _PyErr_WarnUnawaitedAgenMethod(PyAsyncGenObject *agen, PyObject *method);
#ifdef __cplusplus
}
#endif
#endif /* !Py_INTERNAL_WARNINGS_H */