jpayne@69: #ifndef Py_TRACEBACK_H jpayne@69: #define Py_TRACEBACK_H jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: struct _frame; jpayne@69: jpayne@69: /* Traceback interface */ jpayne@69: jpayne@69: PyAPI_FUNC(int) PyTraceBack_Here(struct _frame *); jpayne@69: PyAPI_FUNC(int) PyTraceBack_Print(PyObject *, PyObject *); jpayne@69: jpayne@69: /* Reveal traceback type so we can typecheck traceback objects */ jpayne@69: PyAPI_DATA(PyTypeObject) PyTraceBack_Type; jpayne@69: #define PyTraceBack_Check(v) (Py_TYPE(v) == &PyTraceBack_Type) jpayne@69: jpayne@69: jpayne@69: #ifndef Py_LIMITED_API jpayne@69: # define Py_CPYTHON_TRACEBACK_H jpayne@69: # include "cpython/traceback.h" jpayne@69: # undef Py_CPYTHON_TRACEBACK_H jpayne@69: #endif jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: #endif /* !Py_TRACEBACK_H */