[2] | 1 |
|
---|
| 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_InteractiveFlag;
|
---|
| 11 | PyAPI_DATA(int) Py_InspectFlag;
|
---|
| 12 | PyAPI_DATA(int) Py_OptimizeFlag;
|
---|
| 13 | PyAPI_DATA(int) Py_NoSiteFlag;
|
---|
| 14 | PyAPI_DATA(int) Py_BytesWarningFlag;
|
---|
| 15 | PyAPI_DATA(int) Py_UseClassExceptionsFlag;
|
---|
| 16 | PyAPI_DATA(int) Py_FrozenFlag;
|
---|
| 17 | PyAPI_DATA(int) Py_TabcheckFlag;
|
---|
| 18 | PyAPI_DATA(int) Py_UnicodeFlag;
|
---|
| 19 | PyAPI_DATA(int) Py_IgnoreEnvironmentFlag;
|
---|
| 20 | PyAPI_DATA(int) Py_DivisionWarningFlag;
|
---|
| 21 | PyAPI_DATA(int) Py_DontWriteBytecodeFlag;
|
---|
| 22 | PyAPI_DATA(int) Py_NoUserSiteDirectory;
|
---|
| 23 | /* _XXX Py_QnewFlag should go away in 3.0. It's true iff -Qnew is passed,
|
---|
| 24 | on the command line, and is used in 2.2 by ceval.c to make all "/" divisions
|
---|
| 25 | true divisions (which they will be in 3.0). */
|
---|
| 26 | PyAPI_DATA(int) _Py_QnewFlag;
|
---|
| 27 | /* Warn about 3.x issues */
|
---|
| 28 | PyAPI_DATA(int) Py_Py3kWarningFlag;
|
---|
[391] | 29 | PyAPI_DATA(int) Py_HashRandomizationFlag;
|
---|
[2] | 30 |
|
---|
| 31 | /* this is a wrapper around getenv() that pays attention to
|
---|
| 32 | Py_IgnoreEnvironmentFlag. It should be used for getting variables like
|
---|
| 33 | PYTHONPATH and PYTHONHOME from the environment */
|
---|
| 34 | #define Py_GETENV(s) (Py_IgnoreEnvironmentFlag ? NULL : getenv(s))
|
---|
| 35 |
|
---|
| 36 | PyAPI_FUNC(void) Py_FatalError(const char *message);
|
---|
| 37 |
|
---|
| 38 | #ifdef __cplusplus
|
---|
| 39 | }
|
---|
| 40 | #endif
|
---|
| 41 | #endif /* !Py_PYDEBUG_H */
|
---|