Eric Snow | 2ebc5ce | 2017-09-07 23:51:28 -0600 | [diff] [blame^] | 1 | #ifndef Py_INTERNAL_WARNINGS_H |
| 2 | #define Py_INTERNAL_WARNINGS_H |
| 3 | #ifdef __cplusplus |
| 4 | extern "C" { |
| 5 | #endif |
| 6 | |
| 7 | #include "object.h" |
| 8 | |
| 9 | struct _warnings_runtime_state { |
| 10 | /* Both 'filters' and 'onceregistry' can be set in warnings.py; |
| 11 | get_warnings_attr() will reset these variables accordingly. */ |
| 12 | PyObject *filters; /* List */ |
| 13 | PyObject *once_registry; /* Dict */ |
| 14 | PyObject *default_action; /* String */ |
| 15 | long filters_version; |
| 16 | }; |
| 17 | |
| 18 | #ifdef __cplusplus |
| 19 | } |
| 20 | #endif |
| 21 | #endif /* !Py_INTERNAL_WARNINGS_H */ |