Debian Codegraph @

lib_pypy/_testcapi_feature_macros.inc

raw
1 // Generated by Tools/scripts/stable_abi.py
2
3 // Add an entry in dict `result` for each Stable ABI feature macro.
4
5 #ifdef HAVE_FORK
6 res = PyDict_SetItemString(result, "HAVE_FORK", Py_True);
7 #else
8 res = PyDict_SetItemString(result, "HAVE_FORK", Py_False);
9 #endif
10 if (res) {
11 Py_DECREF(result); return NULL;
12 }
13
14 #ifdef MS_WINDOWS
15 res = PyDict_SetItemString(result, "MS_WINDOWS", Py_True);
16 #else
17 res = PyDict_SetItemString(result, "MS_WINDOWS", Py_False);
18 #endif
19 if (res) {
20 Py_DECREF(result); return NULL;
21 }
22
23 #ifdef PY_HAVE_THREAD_NATIVE_ID
24 res = PyDict_SetItemString(result, "PY_HAVE_THREAD_NATIVE_ID", Py_True);
25 #else
26 res = PyDict_SetItemString(result, "PY_HAVE_THREAD_NATIVE_ID", Py_False);
27 #endif
28 if (res) {
29 Py_DECREF(result); return NULL;
30 }
31
32 #ifdef Py_REF_DEBUG
33 res = PyDict_SetItemString(result, "Py_REF_DEBUG", Py_True);
34 #else
35 res = PyDict_SetItemString(result, "Py_REF_DEBUG", Py_False);
36 #endif
37 if (res) {
38 Py_DECREF(result); return NULL;
39 }
40
41 #ifdef USE_STACKCHECK
42 res = PyDict_SetItemString(result, "USE_STACKCHECK", Py_True);
43 #else
44 res = PyDict_SetItemString(result, "USE_STACKCHECK", Py_False);
45 #endif
46 if (res) {
47 Py_DECREF(result); return NULL;
48 }
49