home *** CD-ROM | disk | FTP | other *** search
/ Freelog 33 / Freelog033.iso / Progr / Python-2.2.1.exe / PYDEBUG.H < prev    next >
Encoding:
C/C++ Source or Header  |  2001-12-06  |  1.1 KB  |  35 lines

  1.  
  2. #ifndef Py_PYDEBUG_H
  3. #define Py_PYDEBUG_H
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7.  
  8. extern DL_IMPORT(int) Py_DebugFlag;
  9. extern DL_IMPORT(int) Py_VerboseFlag;
  10. extern DL_IMPORT(int) Py_InteractiveFlag;
  11. extern DL_IMPORT(int) Py_OptimizeFlag;
  12. extern DL_IMPORT(int) Py_NoSiteFlag;
  13. extern DL_IMPORT(int) Py_UseClassExceptionsFlag;
  14. extern DL_IMPORT(int) Py_FrozenFlag;
  15. extern DL_IMPORT(int) Py_TabcheckFlag;
  16. extern DL_IMPORT(int) Py_UnicodeFlag;
  17. extern DL_IMPORT(int) Py_IgnoreEnvironmentFlag;
  18. extern DL_IMPORT(int) Py_DivisionWarningFlag;
  19. /* _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). */
  22. extern DL_IMPORT(int) _Py_QnewFlag;
  23.  
  24. /* this is a wrapper around getenv() that pays attention to
  25.    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))
  28.  
  29. DL_IMPORT(void) Py_FatalError(char *message);
  30.  
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif /* !Py_PYDEBUG_H */
  35.