blob: 70c88f67a1db0c8a11d205f8d6dfe678f1443ade [file] [log] [blame]
Martin v. Löwis4d0d4712010-12-03 20:14:31 +00001#ifndef Py_LIMITED_API
Guido van Rossum12669741996-05-22 16:38:17 +00002#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;
Georg Brandl8aa7e992010-12-28 18:30:18 +000010PyAPI_DATA(int) Py_QuietFlag;
Mark Hammonda2905272002-07-29 13:42:14 +000011PyAPI_DATA(int) Py_InteractiveFlag;
Guido van Rossumd8faa362007-04-27 19:54:29 +000012PyAPI_DATA(int) Py_InspectFlag;
Mark Hammonda2905272002-07-29 13:42:14 +000013PyAPI_DATA(int) Py_OptimizeFlag;
14PyAPI_DATA(int) Py_NoSiteFlag;
Guido van Rossum98297ee2007-11-06 21:34:58 +000015PyAPI_DATA(int) Py_BytesWarningFlag;
Mark Hammonda2905272002-07-29 13:42:14 +000016PyAPI_DATA(int) Py_UseClassExceptionsFlag;
17PyAPI_DATA(int) Py_FrozenFlag;
Mark Hammonda2905272002-07-29 13:42:14 +000018PyAPI_DATA(int) Py_IgnoreEnvironmentFlag;
19PyAPI_DATA(int) Py_DivisionWarningFlag;
Christian Heimes790c8232008-01-07 21:14:23 +000020PyAPI_DATA(int) Py_DontWriteBytecodeFlag;
Christian Heimes8dc226f2008-05-06 23:45:46 +000021PyAPI_DATA(int) Py_NoUserSiteDirectory;
Antoine Pitrou05608432009-01-09 18:53:14 +000022PyAPI_DATA(int) Py_UnbufferedStdioFlag;
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 */
Martin v. Löwis4d0d4712010-12-03 20:14:31 +000035#endif /* Py_LIMITED_API */