File: traceback.h

package info (click to toggle)
python2.5 2.5.5-11
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 56,224 kB
  • ctags: 97,603
  • sloc: ansic: 355,108; python: 321,195; sh: 27,074; asm: 6,567; makefile: 4,375; lisp: 3,696; perl: 3,674; xml: 894; objc: 756; sed: 2
file content (30 lines) | stat: -rw-r--r-- 624 bytes parent folder | download | duplicates (8)
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

#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 *);

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

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