FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/Modules/_testcapi_feature_macros.inc at main · python/cpython · GitHub
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
37.4k
Star
77.5k
Code
Issues
5k+
Pull requests
2.7k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython
/
Modules
/
_testcapi_feature_macros.inc
Copy path
More file actions
More file actions
Latest commit
History
History
History
58 lines (50 loc) · 1.39 KB
Breadcrumbs
cpython
/
Modules
/
_testcapi_feature_macros.inc
Copy path
File metadata and controls
58 lines (50 loc) · 1.39 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
//
Generated by Tools/build/stable_abi.py
//
Add an entry in dict `result` for each Stable ABI feature macro.
#
ifdef
HAVE_FORK
res = PyDict_SetItemString(result,
"
HAVE_FORK
"
, Py_True);
#
else
res = PyDict_SetItemString(result,
"
HAVE_FORK
"
, Py_False);
#
endif
if
(res) {
Py_DECREF
(result);
return
NULL
;
}
#
ifdef
MS_WINDOWS
res = PyDict_SetItemString(result,
"
MS_WINDOWS
"
, Py_True);
#
else
res = PyDict_SetItemString(result,
"
MS_WINDOWS
"
, Py_False);
#
endif
if
(res) {
Py_DECREF
(result);
return
NULL
;
}
#
ifdef
PY_HAVE_THREAD_NATIVE_ID
res = PyDict_SetItemString(result,
"
PY_HAVE_THREAD_NATIVE_ID
"
, Py_True);
#
else
res = PyDict_SetItemString(result,
"
PY_HAVE_THREAD_NATIVE_ID
"
, Py_False);
#
endif
if
(res) {
Py_DECREF
(result);
return
NULL
;
}
#
ifdef
Py_REF_DEBUG
res = PyDict_SetItemString(result,
"
Py_REF_DEBUG
"
, Py_True);
#
else
res = PyDict_SetItemString(result,
"
Py_REF_DEBUG
"
, Py_False);
#
endif
if
(res) {
Py_DECREF
(result);
return
NULL
;
}
#
ifdef
Py_TRACE_REFS
res = PyDict_SetItemString(result,
"
Py_TRACE_REFS
"
, Py_True);
#
else
res = PyDict_SetItemString(result,
"
Py_TRACE_REFS
"
, Py_False);
#
endif
if
(res) {
Py_DECREF
(result);
return
NULL
;
}
#
ifdef
USE_STACKCHECK
res = PyDict_SetItemString(result,
"
USE_STACKCHECK
"
, Py_True);
#
else
res = PyDict_SetItemString(result,
"
USE_STACKCHECK
"
, Py_False);
#
endif
if
(res) {
Py_DECREF
(result);
return
NULL
;
}
Back
|
FazBrowse Home
|
New Git URL