blob: 659e994301b667425713e98f842b42b9362856ef [file] [log] [blame]
Guido van Rossumf70e43a1991-02-19 12:39:46 +00001
Fred Drake5eb6d4e2000-07-08 23:37:28 +00002#ifndef Py_TRACEBACK_H
3#define Py_TRACEBACK_H
4#ifdef __cplusplus
5extern "C" {
6#endif
7
Guido van Rossum3f5da241990-12-20 15:06:42 +00008/* Traceback interface */
9
Guido van Rossum66cb3111994-12-30 15:33:50 +000010struct _frame;
11
Mark Hammond91a681d2002-08-12 07:21:58 +000012PyAPI_FUNC(int) PyTraceBack_Here(struct _frame *);
13PyAPI_FUNC(int) PyTraceBack_Print(PyObject *, PyObject *);
Guido van Rossuma3309961993-07-28 09:05:47 +000014
Andrew M. Kuchling913b9072002-03-19 16:02:35 +000015/* Reveal traceback type so we can typecheck traceback objects */
Mark Hammond91a681d2002-08-12 07:21:58 +000016PyAPI_DATA(PyTypeObject) PyTraceBack_Type;
Guido van Rossum9d78d8d1995-09-18 21:29:36 +000017#define PyTraceBack_Check(v) ((v)->ob_type == &PyTraceBack_Type)
Guido van Rossum884afd61995-07-18 14:21:06 +000018
Guido van Rossuma3309961993-07-28 09:05:47 +000019#ifdef __cplusplus
20}
21#endif
22#endif /* !Py_TRACEBACK_H */