cpython/Include/pydebug.h

30 lines
845 B
C
Raw Normal View History

#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;
extern DL_IMPORT(int) Py_UseClassExceptionsFlag;
extern DL_IMPORT(int) Py_FrozenFlag;
1998-04-10 17:59:44 +00:00
extern DL_IMPORT(int) Py_TabcheckFlag;
extern DL_IMPORT(int) Py_UnicodeFlag;
extern DL_IMPORT(int) Py_IgnoreEnvironmentFlag;
2001-07-23 16:50:15 +00:00
/* this is a wrapper around getenv() that pays attention to
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))
DL_IMPORT(void) Py_FatalError(char *message);
#ifdef __cplusplus
}
#endif
#endif /* !Py_PYDEBUG_H */