blob: 8fe98183f9efcf40762aa3202adccbbbcae0ed04 [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;
Christian Heimes790c8232008-01-07 21:14:23 +000019PyAPI_DATA(int) Py_DontWriteBytecodeFlag;
Christian Heimes8dc226f2008-05-06 23:45:46 +000020PyAPI_DATA(int) Py_NoUserSiteDirectory;
Antoine Pitrou05608432009-01-09 18:53:14 +000021PyAPI_DATA(int) Py_UnbufferedStdioFlag;
Georg Brandl2daf6ae2012-02-20 19:54:16 +010022PyAPI_DATA(int) Py_HashRandomizationFlag;
Christian Heimesad73a9c2013-08-10 16:36:18 +020023PyAPI_DATA(int) Py_IsolatedFlag;
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
Guido van Rossum12669741996-05-22 16:38:17 +000030#ifdef __cplusplus
31}
32#endif
33#endif /* !Py_PYDEBUG_H */
Martin v. Löwis4d0d4712010-12-03 20:14:31 +000034#endif /* Py_LIMITED_API */