- Notifications
You must be signed in to change notification settings - Fork 31.7k
/
Copy pathtraceback.h
31 lines (24 loc) · 697 Bytes
/
traceback.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndefPy_TRACEBACK_H
#definePy_TRACEBACK_H
#ifdef__cplusplus
extern"C" {
#endif
struct_frame;
/* Traceback interface */
typedefstruct_traceback {
PyObject_HEAD
struct_traceback*tb_next;
struct_frame*tb_frame;
inttb_lasti;
inttb_lineno;
} PyTracebackObject;
PyAPI_FUNC(int) PyTraceBack_Here(struct_frame*);
PyAPI_FUNC(int) PyTraceBack_Print(PyObject*, PyObject*);
PyAPI_FUNC(int) _Py_DisplaySourceLine(PyObject*, constchar*, int, int);
/* Reveal traceback type so we can typecheck traceback objects */
PyAPI_DATA(PyTypeObject) PyTraceBack_Type;
#definePyTraceBack_Check(v) (Py_TYPE(v) == &PyTraceBack_Type)
#ifdef__cplusplus
}
#endif
#endif/* !Py_TRACEBACK_H */