Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-11-19 09:50:52

0001 #ifndef Py_INTERNAL_WARNINGS_H
0002 #define Py_INTERNAL_WARNINGS_H
0003 #ifdef __cplusplus
0004 extern "C" {
0005 #endif
0006 
0007 #ifndef Py_BUILD_CORE
0008 #  error "this header requires Py_BUILD_CORE define"
0009 #endif
0010 
0011 struct _warnings_runtime_state {
0012     /* Both 'filters' and 'onceregistry' can be set in warnings.py;
0013        get_warnings_attr() will reset these variables accordingly. */
0014     PyObject *filters;  /* List */
0015     PyObject *once_registry;  /* Dict */
0016     PyObject *default_action; /* String */
0017     PyMutex mutex;
0018     long filters_version;
0019 };
0020 
0021 extern int _PyWarnings_InitState(PyInterpreterState *interp);
0022 
0023 extern PyObject* _PyWarnings_Init(void);
0024 
0025 extern void _PyErr_WarnUnawaitedCoroutine(PyObject *coro);
0026 extern void _PyErr_WarnUnawaitedAgenMethod(PyAsyncGenObject *agen, PyObject *method);
0027 
0028 #ifdef __cplusplus
0029 }
0030 #endif
0031 #endif /* !Py_INTERNAL_WARNINGS_H */