Moved tracebackobject to traceback.h, Closes SF Bug #497067

This commit is contained in:
Nicholas Bastin 2004-03-21 18:37:23 +00:00
parent 8183fa46a9
commit a7604bf1b4
3 changed files with 27 additions and 24 deletions

View file

@ -5,9 +5,17 @@
extern "C" {
#endif
struct _frame;
/* Traceback interface */
struct _frame;
typedef struct _traceback {
PyObject_HEAD
struct _traceback *tb_next;
struct _frame *tb_frame;
int tb_lasti;
int tb_lineno;
} PyTracebackObject;
PyAPI_FUNC(int) PyTraceBack_Here(struct _frame *);
PyAPI_FUNC(int) PyTraceBack_Print(PyObject *, PyObject *);