Source

gsoc_import_engine / Include / traceback.h

The branch '3.0' does not exist.
Full commit
Guido van Rossum 853b736 
Fred Drake 7e58c06 





nbastin 49ec0d8 

Guido van Rossum a693438 

nbastin 49ec0d8 






Guido van Rossum 4ebee90 
Mark Hammond c1eb668 

Georg Brandl de0bf60 
Guido van Rossum 519c250 
Michael W. Hudso… a2fe0ec 
Mark Hammond c1eb668 
Christian Heimes 86a2679 
Guido van Rossum 64928f6 
Guido van Rossum 519c250 



#ifndef Py_TRACEBACK_H
#define Py_TRACEBACK_H
#ifdef __cplusplus
extern "C" {
#endif

struct _frame;

/* Traceback interface */

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 *);
PyAPI_FUNC(int) _Py_DisplaySourceLine(PyObject *, const char *, int, int);

/* Reveal traceback type so we can typecheck traceback objects */
PyAPI_DATA(PyTypeObject) PyTraceBack_Type;
#define PyTraceBack_Check(v) (Py_TYPE(v) == &PyTraceBack_Type)

#ifdef __cplusplus
}
#endif
#endif /* !Py_TRACEBACK_H */