jpayne@69: #ifndef Py_LIMITED_API jpayne@69: #ifndef Py_PYDEBUG_H jpayne@69: #define Py_PYDEBUG_H jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: /* These global variable are defined in pylifecycle.c */ jpayne@69: /* XXX (ncoghlan): move these declarations to pylifecycle.h? */ jpayne@69: PyAPI_DATA(int) Py_DebugFlag; jpayne@69: PyAPI_DATA(int) Py_VerboseFlag; jpayne@69: PyAPI_DATA(int) Py_QuietFlag; jpayne@69: PyAPI_DATA(int) Py_InteractiveFlag; jpayne@69: PyAPI_DATA(int) Py_InspectFlag; jpayne@69: PyAPI_DATA(int) Py_OptimizeFlag; jpayne@69: PyAPI_DATA(int) Py_NoSiteFlag; jpayne@69: PyAPI_DATA(int) Py_BytesWarningFlag; jpayne@69: PyAPI_DATA(int) Py_FrozenFlag; jpayne@69: PyAPI_DATA(int) Py_IgnoreEnvironmentFlag; jpayne@69: PyAPI_DATA(int) Py_DontWriteBytecodeFlag; jpayne@69: PyAPI_DATA(int) Py_NoUserSiteDirectory; jpayne@69: PyAPI_DATA(int) Py_UnbufferedStdioFlag; jpayne@69: PyAPI_DATA(int) Py_HashRandomizationFlag; jpayne@69: PyAPI_DATA(int) Py_IsolatedFlag; jpayne@69: jpayne@69: #ifdef MS_WINDOWS jpayne@69: PyAPI_DATA(int) Py_LegacyWindowsFSEncodingFlag; jpayne@69: PyAPI_DATA(int) Py_LegacyWindowsStdioFlag; jpayne@69: #endif jpayne@69: jpayne@69: /* this is a wrapper around getenv() that pays attention to jpayne@69: Py_IgnoreEnvironmentFlag. It should be used for getting variables like jpayne@69: PYTHONPATH and PYTHONHOME from the environment */ jpayne@69: #define Py_GETENV(s) (Py_IgnoreEnvironmentFlag ? NULL : getenv(s)) jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: #endif /* !Py_PYDEBUG_H */ jpayne@69: #endif /* Py_LIMITED_API */