File indexing completed on 2025-01-18 10:06:51
0001 #ifndef Py_WARNINGS_H
0002 #define Py_WARNINGS_H
0003 #ifdef __cplusplus
0004 extern "C" {
0005 #endif
0006
0007 PyAPI_FUNC(int) PyErr_WarnEx(
0008 PyObject *category,
0009 const char *message,
0010 Py_ssize_t stack_level);
0011
0012 PyAPI_FUNC(int) PyErr_WarnFormat(
0013 PyObject *category,
0014 Py_ssize_t stack_level,
0015 const char *format,
0016 ...);
0017
0018 #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03060000
0019
0020 PyAPI_FUNC(int) PyErr_ResourceWarning(
0021 PyObject *source,
0022 Py_ssize_t stack_level,
0023 const char *format,
0024 ...);
0025 #endif
0026
0027 PyAPI_FUNC(int) PyErr_WarnExplicit(
0028 PyObject *category,
0029 const char *message,
0030 const char *filename,
0031 int lineno,
0032 const char *module,
0033 PyObject *registry);
0034
0035 #ifndef Py_LIMITED_API
0036 # define Py_CPYTHON_WARNINGS_H
0037 # include "cpython/warnings.h"
0038 # undef Py_CPYTHON_WARNINGS_H
0039 #endif
0040
0041 #ifdef __cplusplus
0042 }
0043 #endif
0044 #endif
0045