1 | #ifndef Py_LIMITED_API |
2 | #ifndef Py_PYDEBUG_H |
3 | #define Py_PYDEBUG_H |
4 | #ifdef __cplusplus |
5 | extern "C" { |
6 | #endif |
7 | |
8 | PyAPI_DATA(int) Py_DebugFlag; |
9 | PyAPI_DATA(int) Py_VerboseFlag; |
10 | PyAPI_DATA(int) Py_QuietFlag; |
11 | PyAPI_DATA(int) Py_InteractiveFlag; |
12 | PyAPI_DATA(int) Py_InspectFlag; |
13 | PyAPI_DATA(int) Py_OptimizeFlag; |
14 | PyAPI_DATA(int) Py_NoSiteFlag; |
15 | PyAPI_DATA(int) Py_BytesWarningFlag; |
16 | PyAPI_DATA(int) Py_FrozenFlag; |
17 | PyAPI_DATA(int) Py_IgnoreEnvironmentFlag; |
18 | PyAPI_DATA(int) Py_DontWriteBytecodeFlag; |
19 | PyAPI_DATA(int) Py_NoUserSiteDirectory; |
20 | PyAPI_DATA(int) Py_UnbufferedStdioFlag; |
21 | PyAPI_DATA(int) Py_HashRandomizationFlag; |
22 | PyAPI_DATA(int) Py_IsolatedFlag; |
23 | |
24 | #ifdef MS_WINDOWS |
25 | PyAPI_DATA(int) Py_LegacyWindowsFSEncodingFlag; |
26 | PyAPI_DATA(int) Py_LegacyWindowsStdioFlag; |
27 | #endif |
28 | |
29 | /* this is a wrapper around getenv() that pays attention to |
30 | Py_IgnoreEnvironmentFlag. It should be used for getting variables like |
31 | PYTHONPATH and PYTHONHOME from the environment */ |
32 | #define Py_GETENV(s) (Py_IgnoreEnvironmentFlag ? NULL : getenv(s)) |
33 | |
34 | #ifdef __cplusplus |
35 | } |
36 | #endif |
37 | #endif /* !Py_PYDEBUG_H */ |
38 | #endif /* Py_LIMITED_API */ |
39 | |