source: trunk/include/python2.4/traceback.h @ 88

Last change on this file since 88 was 88, checked in by cxsong, 19 years ago

copied from /opt/rappture/include

File size: 624 bytes
Line 
1
2#ifndef Py_TRACEBACK_H
3#define Py_TRACEBACK_H
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8struct _frame;
9
10/* Traceback interface */
11
12typedef struct _traceback {
13        PyObject_HEAD
14        struct _traceback *tb_next;
15        struct _frame *tb_frame;
16        int tb_lasti;
17        int tb_lineno;
18} PyTracebackObject;
19
20PyAPI_FUNC(int) PyTraceBack_Here(struct _frame *);
21PyAPI_FUNC(int) PyTraceBack_Print(PyObject *, PyObject *);
22
23/* Reveal traceback type so we can typecheck traceback objects */
24PyAPI_DATA(PyTypeObject) PyTraceBack_Type;
25#define PyTraceBack_Check(v) ((v)->ob_type == &PyTraceBack_Type)
26
27#ifdef __cplusplus
28}
29#endif
30#endif /* !Py_TRACEBACK_H */
Note: See TracBrowser for help on using the repository browser.