blob: 19bec2bd81bc3c3881aff41ee0514966c5741821 [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
Nick Coghland6009512014-11-20 21:39:37 +10008/* These global variable are defined in pylifecycle.c */
9/* XXX (ncoghlan): move these declarations to pylifecycle.h? */
Mark Hammonda2905272002-07-29 13:42:14 +000010PyAPI_DATA(int) Py_DebugFlag;
11PyAPI_DATA(int) Py_VerboseFlag;
Georg Brandl8aa7e992010-12-28 18:30:18 +000012PyAPI_DATA(int) Py_QuietFlag;
Mark Hammonda2905272002-07-29 13:42:14 +000013PyAPI_DATA(int) Py_InteractiveFlag;
Guido van Rossumd8faa362007-04-27 19:54:29 +000014PyAPI_DATA(int) Py_InspectFlag;
Mark Hammonda2905272002-07-29 13:42:14 +000015PyAPI_DATA(int) Py_OptimizeFlag;
16PyAPI_DATA(int) Py_NoSiteFlag;
Guido van Rossum98297ee2007-11-06 21:34:58 +000017PyAPI_DATA(int) Py_BytesWarningFlag;
Mark Hammonda2905272002-07-29 13:42:14 +000018PyAPI_DATA(int) Py_UseClassExceptionsFlag;
19PyAPI_DATA(int) Py_FrozenFlag;
Mark Hammonda2905272002-07-29 13:42:14 +000020PyAPI_DATA(int) Py_IgnoreEnvironmentFlag;
Christian Heimes790c8232008-01-07 21:14:23 +000021PyAPI_DATA(int) Py_DontWriteBytecodeFlag;
Christian Heimes8dc226f2008-05-06 23:45:46 +000022PyAPI_DATA(int) Py_NoUserSiteDirectory;
Antoine Pitrou05608432009-01-09 18:53:14 +000023PyAPI_DATA(int) Py_UnbufferedStdioFlag;
Georg Brandl2daf6ae2012-02-20 19:54:16 +010024PyAPI_DATA(int) Py_HashRandomizationFlag;
Christian Heimesad73a9c2013-08-10 16:36:18 +020025PyAPI_DATA(int) Py_IsolatedFlag;
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
Guido van Rossum12669741996-05-22 16:38:17 +000032#ifdef __cplusplus
33}
34#endif
35#endif /* !Py_PYDEBUG_H */
Martin v. Löwis4d0d4712010-12-03 20:14:31 +000036#endif /* Py_LIMITED_API */