blob: d92161cd64a496791df10481dd06a67167101f12 [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
8extern DL_IMPORT(int) Py_DebugFlag;
9extern DL_IMPORT(int) Py_VerboseFlag;
Guido van Rossum3f3a2681997-02-14 19:51:09 +000010extern DL_IMPORT(int) Py_InteractiveFlag;
Guido van Rossume9e47791997-03-03 19:13:54 +000011extern DL_IMPORT(int) Py_OptimizeFlag;
Guido van Rossum3d90af91997-08-29 22:34:00 +000012extern DL_IMPORT(int) Py_NoSiteFlag;
Barry Warsawd5a0ff91997-08-29 22:01:11 +000013extern DL_IMPORT(int) Py_UseClassExceptionsFlag;
Guido van Rossum95c745b1998-02-06 22:27:46 +000014extern DL_IMPORT(int) Py_FrozenFlag;
Guido van Rossum4d856ee1998-04-10 17:59:44 +000015extern DL_IMPORT(int) Py_TabcheckFlag;
Guido van Rossumb16d1972000-05-01 17:55:15 +000016extern DL_IMPORT(int) Py_UnicodeFlag;
Neil Schemenauer7d4bb9f2001-07-23 16:30:27 +000017extern DL_IMPORT(int) Py_IgnoreEnvironmentFlag;
Guido van Rossum393661d2001-08-31 17:40:15 +000018extern DL_IMPORT(int) Py_DivisionWarningFlag;
Tim Peters3caca232001-12-06 06:23:26 +000019/* _XXX Py_QnewFlag should go away in 2.3. It's true iff -Qnew is passed,
20 on the command line, and is used in 2.2 by ceval.c to make all "/" divisions
21 true divisions (which they will be in 2.3). */
22extern DL_IMPORT(int) _Py_QnewFlag;
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
Fred Drake5eb6d4e2000-07-08 23:37:28 +000029DL_IMPORT(void) Py_FatalError(char *message);
Guido van Rossum12669741996-05-22 16:38:17 +000030
31#ifdef __cplusplus
32}
33#endif
34#endif /* !Py_PYDEBUG_H */