home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 April / PCWorld_2001-04_cd.bin / Software / TemaCD / webclean / !!!python!!! / BeOpen-Python-2.0.exe / TRACEBACK.H < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-01  |  595 b   |  25 lines

  1.  
  2. #ifndef Py_TRACEBACK_H
  3. #define Py_TRACEBACK_H
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7.  
  8. /* Traceback interface */
  9.  
  10. struct _frame;
  11.  
  12. DL_IMPORT(int) PyTraceBack_Here(struct _frame *);
  13. DL_IMPORT(PyObject *) PyTraceBack_Fetch(void);
  14. DL_IMPORT(int) PyTraceBack_Store(PyObject *);
  15. DL_IMPORT(int) PyTraceBack_Print(PyObject *, PyObject *);
  16.  
  17. /* Reveale traceback type so we can typecheck traceback objects */
  18. extern DL_IMPORT(PyTypeObject) PyTraceBack_Type;
  19. #define PyTraceBack_Check(v) ((v)->ob_type == &PyTraceBack_Type)
  20.  
  21. #ifdef __cplusplus
  22. }
  23. #endif
  24. #endif /* !Py_TRACEBACK_H */
  25.