pydebug.h 1.19 KB
Newer Older
1
#ifndef Py_LIMITED_API
2 3 4 5 6 7
#ifndef Py_PYDEBUG_H
#define Py_PYDEBUG_H
#ifdef __cplusplus
extern "C" {
#endif

8 9
/* These global variable are defined in pylifecycle.c */
/* XXX (ncoghlan): move these declarations to pylifecycle.h? */
10 11
PyAPI_DATA(int) Py_DebugFlag;
PyAPI_DATA(int) Py_VerboseFlag;
12
PyAPI_DATA(int) Py_QuietFlag;
13
PyAPI_DATA(int) Py_InteractiveFlag;
14
PyAPI_DATA(int) Py_InspectFlag;
15 16
PyAPI_DATA(int) Py_OptimizeFlag;
PyAPI_DATA(int) Py_NoSiteFlag;
17
PyAPI_DATA(int) Py_BytesWarningFlag;
18 19
PyAPI_DATA(int) Py_FrozenFlag;
PyAPI_DATA(int) Py_IgnoreEnvironmentFlag;
20
PyAPI_DATA(int) Py_DontWriteBytecodeFlag;
21
PyAPI_DATA(int) Py_NoUserSiteDirectory;
22
PyAPI_DATA(int) Py_UnbufferedStdioFlag;
23
PyAPI_DATA(int) Py_HashRandomizationFlag;
24
PyAPI_DATA(int) Py_IsolatedFlag;
25

26
#ifdef MS_WINDOWS
27
PyAPI_DATA(int) Py_LegacyWindowsFSEncodingFlag;
28 29 30
PyAPI_DATA(int) Py_LegacyWindowsStdioFlag;
#endif

Neil Schemenauer's avatar
Neil Schemenauer committed
31
/* this is a wrapper around getenv() that pays attention to
32 33 34
   Py_IgnoreEnvironmentFlag.  It should be used for getting variables like
   PYTHONPATH and PYTHONHOME from the environment */
#define Py_GETENV(s) (Py_IgnoreEnvironmentFlag ? NULL : getenv(s))
35 36 37 38 39

#ifdef __cplusplus
}
#endif
#endif /* !Py_PYDEBUG_H */
40
#endif /* Py_LIMITED_API */