Chris@87: #ifndef Py_WARNINGS_H Chris@87: #define Py_WARNINGS_H Chris@87: #ifdef __cplusplus Chris@87: extern "C" { Chris@87: #endif Chris@87: Chris@87: PyAPI_FUNC(void) _PyWarnings_Init(void); Chris@87: Chris@87: PyAPI_FUNC(int) PyErr_WarnEx(PyObject *, const char *, Py_ssize_t); Chris@87: PyAPI_FUNC(int) PyErr_WarnExplicit(PyObject *, const char *, const char *, int, Chris@87: const char *, PyObject *); Chris@87: Chris@87: #define PyErr_WarnPy3k(msg, stacklevel) \ Chris@87: (Py_Py3kWarningFlag ? PyErr_WarnEx(PyExc_DeprecationWarning, msg, stacklevel) : 0) Chris@87: Chris@87: /* DEPRECATED: Use PyErr_WarnEx() instead. */ Chris@87: #define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1) Chris@87: Chris@87: #ifdef __cplusplus Chris@87: } Chris@87: #endif Chris@87: #endif /* !Py_WARNINGS_H */ Chris@87: