Brett Cannon | e974689 | 2008-04-12 23:44:07 +0000 | [diff] [blame] | 1 | #ifndef Py_WARNINGS_H |
| 2 | #define Py_WARNINGS_H |
| 3 | #ifdef __cplusplus |
| 4 | extern "C" { |
| 5 | #endif |
| 6 | |
| 7 | PyAPI_FUNC(void) _PyWarnings_Init(void); |
| 8 | |
| 9 | PyAPI_FUNC(int) PyErr_WarnEx(PyObject *, const char *, Py_ssize_t); |
| 10 | PyAPI_FUNC(int) PyErr_WarnExplicit(PyObject *, const char *, const char *, int, |
| 11 | const char *, PyObject *); |
Benjamin Peterson | a692c4d | 2008-04-27 02:28:02 +0000 | [diff] [blame] | 12 | PyAPI_FUNC(int) PyErr_WarnPy3k(const char *, Py_ssize_t); |
Brett Cannon | e974689 | 2008-04-12 23:44:07 +0000 | [diff] [blame] | 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 |
Christian Heimes | 0a4f895 | 2008-04-13 09:30:17 +0000 | [diff] [blame] | 20 | #endif /* !Py_WARNINGS_H */ |
| 21 | |