2017-09-08 02:51:28 -03:00
|
|
|
#ifndef Py_INTERNAL_WARNINGS_H
|
|
|
|
#define Py_INTERNAL_WARNINGS_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-04-17 18:02:26 -03:00
|
|
|
#ifndef Py_BUILD_CORE
|
|
|
|
# error "this header requires Py_BUILD_CORE define"
|
2018-11-09 08:03:37 -04:00
|
|
|
#endif
|
|
|
|
|
2017-09-08 02:51:28 -03:00
|
|
|
#include "object.h"
|
|
|
|
|
|
|
|
struct _warnings_runtime_state {
|
|
|
|
/* Both 'filters' and 'onceregistry' can be set in warnings.py;
|
|
|
|
get_warnings_attr() will reset these variables accordingly. */
|
|
|
|
PyObject *filters; /* List */
|
|
|
|
PyObject *once_registry; /* Dict */
|
|
|
|
PyObject *default_action; /* String */
|
|
|
|
long filters_version;
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* !Py_INTERNAL_WARNINGS_H */
|