pydebug.h 1.17 KB
Newer Older
1 2 3 4 5 6 7

#ifndef Py_PYDEBUG_H
#define Py_PYDEBUG_H
#ifdef __cplusplus
extern "C" {
#endif

8 9 10
PyAPI_DATA(int) Py_DebugFlag;
PyAPI_DATA(int) Py_VerboseFlag;
PyAPI_DATA(int) Py_InteractiveFlag;
11
PyAPI_DATA(int) Py_InspectFlag;
12 13 14 15 16 17 18 19
PyAPI_DATA(int) Py_OptimizeFlag;
PyAPI_DATA(int) Py_NoSiteFlag;
PyAPI_DATA(int) Py_UseClassExceptionsFlag;
PyAPI_DATA(int) Py_FrozenFlag;
PyAPI_DATA(int) Py_TabcheckFlag;
PyAPI_DATA(int) Py_UnicodeFlag;
PyAPI_DATA(int) Py_IgnoreEnvironmentFlag;
PyAPI_DATA(int) Py_DivisionWarningFlag;
20
PyAPI_DATA(int) Py_DontWriteBytecodeFlag;
21
/* _XXX Py_QnewFlag should go away in 3.0.  It's true iff -Qnew is passed,
22
  on the command line, and is used in 2.2 by ceval.c to make all "/" divisions
23
  true divisions (which they will be in 3.0). */
24
PyAPI_DATA(int) _Py_QnewFlag;
25 26
/* Warn about 3.x issues */
PyAPI_DATA(int) Py_Py3kWarningFlag;
27

Neil Schemenauer's avatar
Neil Schemenauer committed
28
/* this is a wrapper around getenv() that pays attention to
29 30 31
   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))
32

33
PyAPI_FUNC(void) Py_FatalError(const char *message);
34 35 36 37 38

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