Line | |
---|
1 |
|
---|
2 | #ifndef Py_TRACEBACK_H
|
---|
3 | #define Py_TRACEBACK_H
|
---|
4 | #ifdef __cplusplus
|
---|
5 | extern "C" {
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | struct _frame;
|
---|
9 |
|
---|
10 | /* Traceback interface */
|
---|
11 |
|
---|
12 | typedef 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 |
|
---|
20 | PyAPI_FUNC(int) PyTraceBack_Here(struct _frame *);
|
---|
21 | PyAPI_FUNC(int) PyTraceBack_Print(PyObject *, PyObject *);
|
---|
22 |
|
---|
23 | /* Reveal traceback type so we can typecheck traceback objects */
|
---|
24 | PyAPI_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.