blob: 2878a28a2ee837bb0d1ce67fb97baf1fa6f72d78 [file] [log] [blame]
Eric Snow2ebc5ce2017-09-07 23:51:28 -06001#ifndef Py_INTERNAL_WARNINGS_H
2#define Py_INTERNAL_WARNINGS_H
3#ifdef __cplusplus
4extern "C" {
5#endif
6
7#include "object.h"
8
9struct _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 */