Christian Heimes | 33fe809 | 2008-04-13 13:53:33 +0000 | [diff] [blame] | 1 | #ifndef Py_WARNINGS_H |
| 2 | #define Py_WARNINGS_H |
| 3 | #ifdef __cplusplus |
| 4 | extern "C" { |
| 5 | #endif |
| 6 | |
Martin v. Löwis | 1a21451 | 2008-06-11 05:26:20 +0000 | [diff] [blame] | 7 | PyAPI_FUNC(PyObject*) _PyWarnings_Init(void); |
Christian Heimes | 33fe809 | 2008-04-13 13:53:33 +0000 | [diff] [blame] | 8 | |
| 9 | PyAPI_FUNC(int) PyErr_WarnEx(PyObject *, const char *, Py_ssize_t); |
Victor Stinner | 4a2b7a1 | 2010-08-13 14:03:48 +0000 | [diff] [blame] | 10 | PyAPI_FUNC(int) PyErr_WarnFormat(PyObject *, Py_ssize_t, const char *, ...); |
Christian Heimes | 33fe809 | 2008-04-13 13:53:33 +0000 | [diff] [blame] | 11 | PyAPI_FUNC(int) PyErr_WarnExplicit(PyObject *, const char *, const char *, int, |
| 12 | const char *, PyObject *); |
| 13 | |
| 14 | /* DEPRECATED: Use PyErr_WarnEx() instead. */ |
| 15 | #define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1) |
| 16 | |
| 17 | #ifdef __cplusplus |
| 18 | } |
| 19 | #endif |
| 20 | #endif /* !Py_WARNINGS_H */ |
| 21 | |