blob: db3b65676d612e91f4f4e3935b42c703708b36c6 [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;
Georg Brandl49aafc92007-03-07 00:34:46 +000011PyAPI_DATA(int) Py_InspectFlag;
Mark Hammonda2905272002-07-29 13:42:14 +000012PyAPI_DATA(int) Py_OptimizeFlag;
13PyAPI_DATA(int) Py_NoSiteFlag;
14PyAPI_DATA(int) Py_UseClassExceptionsFlag;
15PyAPI_DATA(int) Py_FrozenFlag;
16PyAPI_DATA(int) Py_TabcheckFlag;
17PyAPI_DATA(int) Py_UnicodeFlag;
18PyAPI_DATA(int) Py_IgnoreEnvironmentFlag;
19PyAPI_DATA(int) Py_DivisionWarningFlag;
Neal Norwitz07f93982003-01-13 16:08:56 +000020/* _XXX Py_QnewFlag should go away in 3.0. It's true iff -Qnew is passed,
Tim Peters3caca232001-12-06 06:23:26 +000021 on the command line, and is used in 2.2 by ceval.c to make all "/" divisions
Neal Norwitz07f93982003-01-13 16:08:56 +000022 true divisions (which they will be in 3.0). */
Mark Hammonda2905272002-07-29 13:42:14 +000023PyAPI_DATA(int) _Py_QnewFlag;
Neil Schemenauer7d4bb9f2001-07-23 16:30:27 +000024
Neil Schemenauer649414c2001-07-23 16:50:15 +000025/* this is a wrapper around getenv() that pays attention to
Neil Schemenauer7d4bb9f2001-07-23 16:30:27 +000026 Py_IgnoreEnvironmentFlag. It should be used for getting variables like
27 PYTHONPATH and PYTHONHOME from the environment */
28#define Py_GETENV(s) (Py_IgnoreEnvironmentFlag ? NULL : getenv(s))
Guido van Rossum12669741996-05-22 16:38:17 +000029
Mark Hammonda2905272002-07-29 13:42:14 +000030PyAPI_FUNC(void) Py_FatalError(const char *message);
Guido van Rossum12669741996-05-22 16:38:17 +000031
32#ifdef __cplusplus
33}
34#endif
35#endif /* !Py_PYDEBUG_H */