17db96d56Sopenharmony_ci#ifndef Py_CPYTHON_WARNINGS_H 27db96d56Sopenharmony_ci# error "this header file must not be included directly" 37db96d56Sopenharmony_ci#endif 47db96d56Sopenharmony_ci 57db96d56Sopenharmony_ciPyAPI_FUNC(int) PyErr_WarnExplicitObject( 67db96d56Sopenharmony_ci PyObject *category, 77db96d56Sopenharmony_ci PyObject *message, 87db96d56Sopenharmony_ci PyObject *filename, 97db96d56Sopenharmony_ci int lineno, 107db96d56Sopenharmony_ci PyObject *module, 117db96d56Sopenharmony_ci PyObject *registry); 127db96d56Sopenharmony_ci 137db96d56Sopenharmony_ciPyAPI_FUNC(int) PyErr_WarnExplicitFormat( 147db96d56Sopenharmony_ci PyObject *category, 157db96d56Sopenharmony_ci const char *filename, int lineno, 167db96d56Sopenharmony_ci const char *module, PyObject *registry, 177db96d56Sopenharmony_ci const char *format, ...); 187db96d56Sopenharmony_ci 197db96d56Sopenharmony_ci// DEPRECATED: Use PyErr_WarnEx() instead. 207db96d56Sopenharmony_ci#define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1) 21