blob: f54eabd24544d4e4d60664661cb4e39830533e24 [file] [log] [blame]
Christian Heimes33fe8092008-04-13 13:53:33 +00001#ifndef Py_WARNINGS_H
2#define Py_WARNINGS_H
3#ifdef __cplusplus
4extern "C" {
5#endif
6
Martin v. Löwis1a214512008-06-11 05:26:20 +00007PyAPI_FUNC(PyObject*) _PyWarnings_Init(void);
Christian Heimes33fe8092008-04-13 13:53:33 +00008
9PyAPI_FUNC(int) PyErr_WarnEx(PyObject *, const char *, Py_ssize_t);
10PyAPI_FUNC(int) PyErr_WarnExplicit(PyObject *, const char *, const char *, int,
11 const char *, PyObject *);
12
13/* DEPRECATED: Use PyErr_WarnEx() instead. */
14#define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1)
15
16#ifdef __cplusplus
17}
18#endif
19#endif /* !Py_WARNINGS_H */
20