• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef Py_INTERNAL_WARNINGS_H
2 #define Py_INTERNAL_WARNINGS_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 
7 #ifndef Py_BUILD_CORE
8 #  error "this header requires Py_BUILD_CORE define"
9 #endif
10 
11 #include "object.h"
12 
13 struct _warnings_runtime_state {
14     /* Both 'filters' and 'onceregistry' can be set in warnings.py;
15        get_warnings_attr() will reset these variables accordingly. */
16     PyObject *filters;  /* List */
17     PyObject *once_registry;  /* Dict */
18     PyObject *default_action; /* String */
19     long filters_version;
20 };
21 
22 #ifdef __cplusplus
23 }
24 #endif
25 #endif /* !Py_INTERNAL_WARNINGS_H */
26