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 | |
| 8 | extern DL_IMPORT(int) Py_DebugFlag; |
| 9 | extern DL_IMPORT(int) Py_VerboseFlag; |
Guido van Rossum | 3f3a268 | 1997-02-14 19:51:09 +0000 | [diff] [blame] | 10 | extern DL_IMPORT(int) Py_InteractiveFlag; |
Guido van Rossum | e9e4779 | 1997-03-03 19:13:54 +0000 | [diff] [blame] | 11 | extern DL_IMPORT(int) Py_OptimizeFlag; |
Guido van Rossum | 3d90af9 | 1997-08-29 22:34:00 +0000 | [diff] [blame] | 12 | extern DL_IMPORT(int) Py_NoSiteFlag; |
Barry Warsaw | d5a0ff9 | 1997-08-29 22:01:11 +0000 | [diff] [blame] | 13 | extern DL_IMPORT(int) Py_UseClassExceptionsFlag; |
Guido van Rossum | 95c745b | 1998-02-06 22:27:46 +0000 | [diff] [blame] | 14 | extern DL_IMPORT(int) Py_FrozenFlag; |
Guido van Rossum | 4d856ee | 1998-04-10 17:59:44 +0000 | [diff] [blame] | 15 | extern DL_IMPORT(int) Py_TabcheckFlag; |
Guido van Rossum | b16d197 | 2000-05-01 17:55:15 +0000 | [diff] [blame] | 16 | extern DL_IMPORT(int) Py_UnicodeFlag; |
Neil Schemenauer | 7d4bb9f | 2001-07-23 16:30:27 +0000 | [diff] [blame] | 17 | extern DL_IMPORT(int) Py_IgnoreEnvironmentFlag; |
Guido van Rossum | 393661d | 2001-08-31 17:40:15 +0000 | [diff] [blame] | 18 | extern DL_IMPORT(int) Py_DivisionWarningFlag; |
Tim Peters | 3caca23 | 2001-12-06 06:23:26 +0000 | [diff] [blame] | 19 | /* _XXX Py_QnewFlag should go away in 2.3. It's true iff -Qnew is passed, |
| 20 | on the command line, and is used in 2.2 by ceval.c to make all "/" divisions |
| 21 | true divisions (which they will be in 2.3). */ |
| 22 | extern DL_IMPORT(int) _Py_QnewFlag; |
Neil Schemenauer | 7d4bb9f | 2001-07-23 16:30:27 +0000 | [diff] [blame] | 23 | |
Neil Schemenauer | 649414c | 2001-07-23 16:50:15 +0000 | [diff] [blame] | 24 | /* this is a wrapper around getenv() that pays attention to |
Neil Schemenauer | 7d4bb9f | 2001-07-23 16:30:27 +0000 | [diff] [blame] | 25 | Py_IgnoreEnvironmentFlag. It should be used for getting variables like |
| 26 | PYTHONPATH and PYTHONHOME from the environment */ |
| 27 | #define Py_GETENV(s) (Py_IgnoreEnvironmentFlag ? NULL : getenv(s)) |
Guido van Rossum | 1266974 | 1996-05-22 16:38:17 +0000 | [diff] [blame] | 28 | |
Fred Drake | 5eb6d4e | 2000-07-08 23:37:28 +0000 | [diff] [blame] | 29 | DL_IMPORT(void) Py_FatalError(char *message); |
Guido van Rossum | 1266974 | 1996-05-22 16:38:17 +0000 | [diff] [blame] | 30 | |
| 31 | #ifdef __cplusplus |
| 32 | } |
| 33 | #endif |
| 34 | #endif /* !Py_PYDEBUG_H */ |