1996-05-22 16:38:17 +00:00
|
|
|
|
|
|
|
#ifndef Py_PYDEBUG_H
|
|
|
|
#define Py_PYDEBUG_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern DL_IMPORT(int) Py_DebugFlag;
|
|
|
|
extern DL_IMPORT(int) Py_VerboseFlag;
|
1997-02-14 19:51:09 +00:00
|
|
|
extern DL_IMPORT(int) Py_InteractiveFlag;
|
1997-03-03 19:13:54 +00:00
|
|
|
extern DL_IMPORT(int) Py_OptimizeFlag;
|
1997-08-29 22:34:00 +00:00
|
|
|
extern DL_IMPORT(int) Py_NoSiteFlag;
|
1997-08-29 22:01:11 +00:00
|
|
|
extern DL_IMPORT(int) Py_UseClassExceptionsFlag;
|
1998-02-06 22:27:46 +00:00
|
|
|
extern DL_IMPORT(int) Py_FrozenFlag;
|
1998-04-10 17:59:44 +00:00
|
|
|
extern DL_IMPORT(int) Py_TabcheckFlag;
|
2000-05-01 17:55:15 +00:00
|
|
|
extern DL_IMPORT(int) Py_UnicodeFlag;
|
2001-07-23 16:30:27 +00:00
|
|
|
extern DL_IMPORT(int) Py_IgnoreEnvironmentFlag;
|
|
|
|
|
2001-07-23 16:50:15 +00:00
|
|
|
/* this is a wrapper around getenv() that pays attention to
|
2001-07-23 16:30:27 +00:00
|
|
|
Py_IgnoreEnvironmentFlag. It should be used for getting variables like
|
|
|
|
PYTHONPATH and PYTHONHOME from the environment */
|
|
|
|
#define Py_GETENV(s) (Py_IgnoreEnvironmentFlag ? NULL : getenv(s))
|
1996-05-22 16:38:17 +00:00
|
|
|
|
2000-07-08 23:37:28 +00:00
|
|
|
DL_IMPORT(void) Py_FatalError(char *message);
|
1996-05-22 16:38:17 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* !Py_PYDEBUG_H */
|