Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:18:11

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     long filters_version;
0018 };
0019 
0020 extern int _PyWarnings_InitState(PyInterpreterState *interp);
0021 
0022 PyAPI_FUNC(PyObject*) _PyWarnings_Init(void);
0023 
0024 extern void _PyErr_WarnUnawaitedCoroutine(PyObject *coro);
0025 
0026 #ifdef __cplusplus
0027 }
0028 #endif
0029 #endif /* !Py_INTERNAL_WARNINGS_H */