123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #ifndef Py_WARNINGS_H
- #define Py_WARNINGS_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifndef Py_LIMITED_API
- PyAPI_FUNC(PyObject*) _PyWarnings_Init(void);
- #endif
- PyAPI_FUNC(int) PyErr_WarnEx(
- PyObject *category,
- const char *message,
- Py_ssize_t stack_level);
- PyAPI_FUNC(int) PyErr_WarnFormat(
- PyObject *category,
- Py_ssize_t stack_level,
- const char *format,
- ...);
- #ifndef Py_LIMITED_API
- PyAPI_FUNC(int) PyErr_WarnExplicitObject(
- PyObject *category,
- PyObject *message,
- PyObject *filename,
- int lineno,
- PyObject *module,
- PyObject *registry);
- #endif
- PyAPI_FUNC(int) PyErr_WarnExplicit(
- PyObject *category,
- const char *message,
- const char *filename,
- int lineno,
- const char *module,
- PyObject *registry);
- #ifndef Py_LIMITED_API
- PyAPI_FUNC(int)
- PyErr_WarnExplicitFormat(PyObject *category,
- const char *filename, int lineno,
- const char *module, PyObject *registry,
- const char *format, ...);
- #endif
- #ifndef Py_LIMITED_API
- #define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1)
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|