blob: f49a98e4c41550f852291cbca0720a486e5690be [file] [log] [blame]
Guido van Rossum12669741996-05-22 16:38:17 +00001
2#ifndef Py_PYDEBUG_H
3#define Py_PYDEBUG_H
4#ifdef __cplusplus
5extern "C" {
6#endif
7
Mark Hammonda2905272002-07-29 13:42:14 +00008PyAPI_DATA(int) Py_DebugFlag;
9PyAPI_DATA(int) Py_VerboseFlag;
10PyAPI_DATA(int) Py_InteractiveFlag;
11PyAPI_DATA(int) Py_OptimizeFlag;
12PyAPI_DATA(int) Py_NoSiteFlag;
13PyAPI_DATA(int) Py_UseClassExceptionsFlag;
14PyAPI_DATA(int) Py_FrozenFlag;
15PyAPI_DATA(int) Py_TabcheckFlag;
16PyAPI_DATA(int) Py_UnicodeFlag;
17PyAPI_DATA(int) Py_IgnoreEnvironmentFlag;
18PyAPI_DATA(int) Py_DivisionWarningFlag;
Neal Norwitz07f93982003-01-13 16:08:56 +000019/* _XXX Py_QnewFlag should go away in 3.0. It's true iff -Qnew is passed,
Tim Peters3caca232001-12-06 06:23:26 +000020 on the command line, and is used in 2.2 by ceval.c to make all "/" divisions
Neal Norwitz07f93982003-01-13 16:08:56 +000021 true divisions (which they will be in 3.0). */
Mark Hammonda2905272002-07-29 13:42:14 +000022PyAPI_DATA(int) _Py_QnewFlag;
Neil Schemenauer7d4bb9f2001-07-23 16:30:27 +000023
Neil Schemenauer649414c2001-07-23 16:50:15 +000024/* this is a wrapper around getenv() that pays attention to
Neil Schemenauer7d4bb9f2001-07-23 16:30:27 +000025 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 Rossum12669741996-05-22 16:38:17 +000028
Mark Hammonda2905272002-07-29 13:42:14 +000029PyAPI_FUNC(void) Py_FatalError(const char *message);
Guido van Rossum12669741996-05-22 16:38:17 +000030
31#ifdef __cplusplus
32}
33#endif
34#endif /* !Py_PYDEBUG_H */