warnings.h 564 B

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