Chris@87: Chris@87: #ifndef Py_PYDEBUG_H Chris@87: #define Py_PYDEBUG_H Chris@87: #ifdef __cplusplus Chris@87: extern "C" { Chris@87: #endif Chris@87: Chris@87: PyAPI_DATA(int) Py_DebugFlag; Chris@87: PyAPI_DATA(int) Py_VerboseFlag; Chris@87: PyAPI_DATA(int) Py_InteractiveFlag; Chris@87: PyAPI_DATA(int) Py_InspectFlag; Chris@87: PyAPI_DATA(int) Py_OptimizeFlag; Chris@87: PyAPI_DATA(int) Py_NoSiteFlag; Chris@87: PyAPI_DATA(int) Py_BytesWarningFlag; Chris@87: PyAPI_DATA(int) Py_UseClassExceptionsFlag; Chris@87: PyAPI_DATA(int) Py_FrozenFlag; Chris@87: PyAPI_DATA(int) Py_TabcheckFlag; Chris@87: PyAPI_DATA(int) Py_UnicodeFlag; Chris@87: PyAPI_DATA(int) Py_IgnoreEnvironmentFlag; Chris@87: PyAPI_DATA(int) Py_DivisionWarningFlag; Chris@87: PyAPI_DATA(int) Py_DontWriteBytecodeFlag; Chris@87: PyAPI_DATA(int) Py_NoUserSiteDirectory; Chris@87: /* _XXX Py_QnewFlag should go away in 3.0. It's true iff -Qnew is passed, Chris@87: on the command line, and is used in 2.2 by ceval.c to make all "/" divisions Chris@87: true divisions (which they will be in 3.0). */ Chris@87: PyAPI_DATA(int) _Py_QnewFlag; Chris@87: /* Warn about 3.x issues */ Chris@87: PyAPI_DATA(int) Py_Py3kWarningFlag; Chris@87: PyAPI_DATA(int) Py_HashRandomizationFlag; Chris@87: Chris@87: /* this is a wrapper around getenv() that pays attention to Chris@87: Py_IgnoreEnvironmentFlag. It should be used for getting variables like Chris@87: PYTHONPATH and PYTHONHOME from the environment */ Chris@87: #define Py_GETENV(s) (Py_IgnoreEnvironmentFlag ? NULL : getenv(s)) Chris@87: Chris@87: PyAPI_FUNC(void) Py_FatalError(const char *message); Chris@87: Chris@87: #ifdef __cplusplus Chris@87: } Chris@87: #endif Chris@87: #endif /* !Py_PYDEBUG_H */