FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/Include/warnings.h at master · python-emscripten/cpython · GitHub
python-emscripten
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython
/
Include
/
warnings.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
67 lines (59 loc) · 1.73 KB
Breadcrumbs
cpython
/
Include
/
warnings.h
Copy path
File metadata and controls
67 lines (59 loc) · 1.73 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#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
,
/* UTF-8 encoded string */
Py_ssize_t
stack_level
);
PyAPI_FUNC
(
int
)
PyErr_WarnFormat
(
PyObject
*
category
,
Py_ssize_t
stack_level
,
const
char
*
format
,
/* ASCII-encoded string */
...);
#if
!defined(
Py_LIMITED_API
)
||
Py_LIMITED_API
+
0
>=
0x03060000
/* Emit a ResourceWarning warning */
PyAPI_FUNC
(
int
)
PyErr_ResourceWarning
(
PyObject
*
source
,
Py_ssize_t
stack_level
,
const
char
*
format
,
/* ASCII-encoded string */
...);
#endif
#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
,
/* UTF-8 encoded string */
const
char
*
filename
,
/* decoded from the filesystem encoding */
int
lineno
,
const
char
*
module
,
/* UTF-8 encoded string */
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
/* DEPRECATED: Use PyErr_WarnEx() instead. */
#ifndef
Py_LIMITED_API
#define
PyErr_Warn
(
category
,
msg
) PyErr_WarnEx(category, msg, 1)
#endif
#ifndef
Py_LIMITED_API
void
_PyErr_WarnUnawaitedCoroutine
(
PyObject
*
coro
);
#endif
#ifdef
__cplusplus
}
#endif
#endif
/* !Py_WARNINGS_H */
Back
|
FazBrowse Home
|
New Git URL