New \grammartoken markup, similar to \token but allowed everywhere.
[python/dscho.git] / Include / traceback.h
blobbaf82e1b23a0c3f5237542028c998f206814ba37
2 #ifndef Py_TRACEBACK_H
3 #define Py_TRACEBACK_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 /* Traceback interface */
10 struct _frame;
12 DL_IMPORT(int) PyTraceBack_Here(struct _frame *);
13 DL_IMPORT(PyObject *) PyTraceBack_Fetch(void);
14 DL_IMPORT(int) PyTraceBack_Store(PyObject *);
15 DL_IMPORT(int) PyTraceBack_Print(PyObject *, PyObject *);
17 /* Reveale traceback type so we can typecheck traceback objects */
18 extern DL_IMPORT(PyTypeObject) PyTraceBack_Type;
19 #define PyTraceBack_Check(v) ((v)->ob_type == &PyTraceBack_Type)
21 #ifdef __cplusplus
23 #endif
24 #endif /* !Py_TRACEBACK_H */