1#ifndef Py_CPYTHON_WARNINGS_H 2# error "this header file must not be included directly" 3#endif 4 5PyAPI_FUNC(int) PyErr_WarnExplicitObject( 6 PyObject *category, 7 PyObject *message, 8 PyObject *filename, 9 int lineno, 10 PyObject *module, 11 PyObject *registry); 12 13PyAPI_FUNC(int) PyErr_WarnExplicitFormat( 14 PyObject *category, 15 const char *filename, int lineno, 16 const char *module, PyObject *registry, 17 const char *format, ...); 18 19// DEPRECATED: Use PyErr_WarnEx() instead. 20#define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1) 21