blob: 3282dc10ec467c4f3b134d75d22d2072ec41ded6 [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;
Neal Norwitz8b2bfbc2007-05-23 06:35:32 +000024/* Warn about 3.x issues */
25PyAPI_DATA(int) Py_Py3kWarningFlag;
Neil Schemenauer7d4bb9f2001-07-23 16:30:27 +000026
Neil Schemenauer649414c2001-07-23 16:50:15 +000027/* this is a wrapper around getenv() that pays attention to
Neil Schemenauer7d4bb9f2001-07-23 16:30:27 +000028 Py_IgnoreEnvironmentFlag. It should be used for getting variables like
29 PYTHONPATH and PYTHONHOME from the environment */
30#define Py_GETENV(s) (Py_IgnoreEnvironmentFlag ? NULL : getenv(s))
Guido van Rossum12669741996-05-22 16:38:17 +000031
Mark Hammonda2905272002-07-29 13:42:14 +000032PyAPI_FUNC(void) Py_FatalError(const char *message);
Guido van Rossum12669741996-05-22 16:38:17 +000033
34#ifdef __cplusplus
35}
36#endif
37#endif /* !Py_PYDEBUG_H */