Skip to content

Latest commit

 

History

History
45 lines (38 loc) · 1.1 KB

File metadata and controls

45 lines (38 loc) · 1.1 KB
 
1
#ifndef Py_WARNINGS_H
2
#define Py_WARNINGS_H
3
#ifdef __cplusplus
4
extern "C" {
5
#endif
6
Dec 27, 2010
Dec 27, 2010
7
PyAPI_FUNC(int) PyErr_WarnEx(
8
PyObject *category,
9
const char *message, /* UTF-8 encoded string */
10
Py_ssize_t stack_level);
Oct 18, 2021
Oct 18, 2021
11
Dec 27, 2010
Dec 27, 2010
12
PyAPI_FUNC(int) PyErr_WarnFormat(
13
PyObject *category,
14
Py_ssize_t stack_level,
15
const char *format, /* ASCII-encoded string */
Mar 19, 2016
Mar 19, 2016
16
...);
17
Dec 27, 2016
Dec 27, 2016
18
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03060000
Mar 19, 2016
Mar 19, 2016
19
/* Emit a ResourceWarning warning */
20
PyAPI_FUNC(int) PyErr_ResourceWarning(
21
PyObject *source,
22
Py_ssize_t stack_level,
23
const char *format, /* ASCII-encoded string */
Dec 27, 2010
Dec 27, 2010
24
...);
Dec 27, 2016
Dec 27, 2016
25
#endif
Oct 18, 2021
Oct 18, 2021
26
Dec 27, 2010
Dec 27, 2010
27
PyAPI_FUNC(int) PyErr_WarnExplicit(
28
PyObject *category,
29
const char *message, /* UTF-8 encoded string */
Dec 27, 2010
Dec 27, 2010
30
const char *filename, /* decoded from the filesystem encoding */
Dec 27, 2010
Dec 27, 2010
31
int lineno,
32
const char *module, /* UTF-8 encoded string */
33
PyObject *registry);
Jan 3, 2014
Jan 3, 2014
35
#ifndef Py_LIMITED_API
Oct 18, 2021
Oct 18, 2021
36
# define Py_CPYTHON_WARNINGS_H
37
# include "cpython/warnings.h"
38
# undef Py_CPYTHON_WARNINGS_H
Jan 21, 2018
Jan 21, 2018
39
#endif
40
41
#ifdef __cplusplus
42
}
43
#endif
44
#endif /* !Py_WARNINGS_H */