Martin v. Löwis | 4d0d471 | 2010-12-03 20:14:31 +0000 | [diff] [blame] | 1 | #ifndef Py_LIMITED_API |
Guido van Rossum | 1266974 | 1996-05-22 16:38:17 +0000 | [diff] [blame] | 2 | #ifndef Py_PYDEBUG_H |
| 3 | #define Py_PYDEBUG_H |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
Mark Hammond | a290527 | 2002-07-29 13:42:14 +0000 | [diff] [blame] | 8 | PyAPI_DATA(int) Py_DebugFlag; |
| 9 | PyAPI_DATA(int) Py_VerboseFlag; |
Georg Brandl | 8aa7e99 | 2010-12-28 18:30:18 +0000 | [diff] [blame] | 10 | PyAPI_DATA(int) Py_QuietFlag; |
Mark Hammond | a290527 | 2002-07-29 13:42:14 +0000 | [diff] [blame] | 11 | PyAPI_DATA(int) Py_InteractiveFlag; |
Guido van Rossum | d8faa36 | 2007-04-27 19:54:29 +0000 | [diff] [blame] | 12 | PyAPI_DATA(int) Py_InspectFlag; |
Mark Hammond | a290527 | 2002-07-29 13:42:14 +0000 | [diff] [blame] | 13 | PyAPI_DATA(int) Py_OptimizeFlag; |
| 14 | PyAPI_DATA(int) Py_NoSiteFlag; |
Guido van Rossum | 98297ee | 2007-11-06 21:34:58 +0000 | [diff] [blame] | 15 | PyAPI_DATA(int) Py_BytesWarningFlag; |
Mark Hammond | a290527 | 2002-07-29 13:42:14 +0000 | [diff] [blame] | 16 | PyAPI_DATA(int) Py_UseClassExceptionsFlag; |
| 17 | PyAPI_DATA(int) Py_FrozenFlag; |
Mark Hammond | a290527 | 2002-07-29 13:42:14 +0000 | [diff] [blame] | 18 | PyAPI_DATA(int) Py_IgnoreEnvironmentFlag; |
Christian Heimes | 790c823 | 2008-01-07 21:14:23 +0000 | [diff] [blame] | 19 | PyAPI_DATA(int) Py_DontWriteBytecodeFlag; |
Christian Heimes | 8dc226f | 2008-05-06 23:45:46 +0000 | [diff] [blame] | 20 | PyAPI_DATA(int) Py_NoUserSiteDirectory; |
Antoine Pitrou | 0560843 | 2009-01-09 18:53:14 +0000 | [diff] [blame] | 21 | PyAPI_DATA(int) Py_UnbufferedStdioFlag; |
Georg Brandl | 2daf6ae | 2012-02-20 19:54:16 +0100 | [diff] [blame] | 22 | PyAPI_DATA(int) Py_HashRandomizationFlag; |
Christian Heimes | ad73a9c | 2013-08-10 16:36:18 +0200 | [diff] [blame] | 23 | PyAPI_DATA(int) Py_IsolatedFlag; |
Neil Schemenauer | 7d4bb9f | 2001-07-23 16:30:27 +0000 | [diff] [blame] | 24 | |
Neil Schemenauer | 649414c | 2001-07-23 16:50:15 +0000 | [diff] [blame] | 25 | /* this is a wrapper around getenv() that pays attention to |
Neil Schemenauer | 7d4bb9f | 2001-07-23 16:30:27 +0000 | [diff] [blame] | 26 | 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 Rossum | 1266974 | 1996-05-22 16:38:17 +0000 | [diff] [blame] | 29 | |
Guido van Rossum | 1266974 | 1996-05-22 16:38:17 +0000 | [diff] [blame] | 30 | #ifdef __cplusplus |
| 31 | } |
| 32 | #endif |
| 33 | #endif /* !Py_PYDEBUG_H */ |
Martin v. Löwis | 4d0d471 | 2010-12-03 20:14:31 +0000 | [diff] [blame] | 34 | #endif /* Py_LIMITED_API */ |