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 15:51:09 -04:00
extern DL_IMPORT(int) Py_InteractiveFlag;
1997-03-03 15:13:54 -04:00
extern DL_IMPORT(int) Py_OptimizeFlag;
1997-08-29 19:34:00 -03:00
extern DL_IMPORT(int) Py_NoSiteFlag;
extern DL_IMPORT(int) Py_UseClassExceptionsFlag;
extern DL_IMPORT(int) Py_FrozenFlag;
1998-04-10 14:59:44 -03:00
extern DL_IMPORT(int) Py_TabcheckFlag;
extern DL_IMPORT(int) Py_UnicodeFlag;
extern DL_IMPORT(int) Py_IgnoreEnvironmentFlag;
2001-07-23 13:50:15 -03: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 */