Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
624 B

  1. #ifndef Py_TRACEBACK_H
  2. #define Py_TRACEBACK_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. struct _frame;
  7. /* Traceback interface */
  8. typedef struct _traceback {
  9. PyObject_HEAD
  10. struct _traceback *tb_next;
  11. struct _frame *tb_frame;
  12. int tb_lasti;
  13. int tb_lineno;
  14. } PyTracebackObject;
  15. PyAPI_FUNC(int) PyTraceBack_Here(struct _frame *);
  16. PyAPI_FUNC(int) PyTraceBack_Print(PyObject *, PyObject *);
  17. /* Reveal traceback type so we can typecheck traceback objects */
  18. PyAPI_DATA(PyTypeObject) PyTraceBack_Type;
  19. #define PyTraceBack_Check(v) ((v)->ob_type == &PyTraceBack_Type)
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif /* !Py_TRACEBACK_H */