Guido van Rossum | 1266974 | 1996-05-22 16:38:17 +0000 | [diff] [blame] | 1 | |
| 2 | #ifndef Py_PYDEBUG_H |
| 3 | #define Py_PYDEBUG_H |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
Mark Hammond | a290527 | 2002-07-29 13:42:14 +0000 | [diff] [blame] | 8 | PyAPI_DATA(int) Py_DebugFlag; |
| 9 | PyAPI_DATA(int) Py_VerboseFlag; |
| 10 | PyAPI_DATA(int) Py_InteractiveFlag; |
Georg Brandl | 49aafc9 | 2007-03-07 00:34:46 +0000 | [diff] [blame] | 11 | PyAPI_DATA(int) Py_InspectFlag; |
Mark Hammond | a290527 | 2002-07-29 13:42:14 +0000 | [diff] [blame] | 12 | PyAPI_DATA(int) Py_OptimizeFlag; |
| 13 | PyAPI_DATA(int) Py_NoSiteFlag; |
Christian Heimes | 1a6387e | 2008-03-26 12:49:49 +0000 | [diff] [blame] | 14 | PyAPI_DATA(int) Py_BytesWarningFlag; |
Mark Hammond | a290527 | 2002-07-29 13:42:14 +0000 | [diff] [blame] | 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; |
Georg Brandl | 2da0fce | 2008-01-07 17:09:35 +0000 | [diff] [blame] | 21 | PyAPI_DATA(int) Py_DontWriteBytecodeFlag; |
Neal Norwitz | 07f9398 | 2003-01-13 16:08:56 +0000 | [diff] [blame] | 22 | /* _XXX Py_QnewFlag should go away in 3.0. It's true iff -Qnew is passed, |
Tim Peters | 3caca23 | 2001-12-06 06:23:26 +0000 | [diff] [blame] | 23 | on the command line, and is used in 2.2 by ceval.c to make all "/" divisions |
Neal Norwitz | 07f9398 | 2003-01-13 16:08:56 +0000 | [diff] [blame] | 24 | true divisions (which they will be in 3.0). */ |
Mark Hammond | a290527 | 2002-07-29 13:42:14 +0000 | [diff] [blame] | 25 | PyAPI_DATA(int) _Py_QnewFlag; |
Neal Norwitz | 8b2bfbc | 2007-05-23 06:35:32 +0000 | [diff] [blame] | 26 | /* Warn about 3.x issues */ |
| 27 | PyAPI_DATA(int) Py_Py3kWarningFlag; |
Neil Schemenauer | 7d4bb9f | 2001-07-23 16:30:27 +0000 | [diff] [blame] | 28 | |
Neil Schemenauer | 649414c | 2001-07-23 16:50:15 +0000 | [diff] [blame] | 29 | /* this is a wrapper around getenv() that pays attention to |
Neil Schemenauer | 7d4bb9f | 2001-07-23 16:30:27 +0000 | [diff] [blame] | 30 | Py_IgnoreEnvironmentFlag. It should be used for getting variables like |
| 31 | PYTHONPATH and PYTHONHOME from the environment */ |
| 32 | #define Py_GETENV(s) (Py_IgnoreEnvironmentFlag ? NULL : getenv(s)) |
Guido van Rossum | 1266974 | 1996-05-22 16:38:17 +0000 | [diff] [blame] | 33 | |
Mark Hammond | a290527 | 2002-07-29 13:42:14 +0000 | [diff] [blame] | 34 | PyAPI_FUNC(void) Py_FatalError(const char *message); |
Guido van Rossum | 1266974 | 1996-05-22 16:38:17 +0000 | [diff] [blame] | 35 | |
| 36 | #ifdef __cplusplus |
| 37 | } |
| 38 | #endif |
| 39 | #endif /* !Py_PYDEBUG_H */ |