Olivier Deprez | f4ef2d0 | 2021-04-20 13:36:24 +0200 | [diff] [blame^] | 1 | #ifndef Py_TRACEBACK_H |
| 2 | #define Py_TRACEBACK_H |
| 3 | #ifdef __cplusplus |
| 4 | extern "C" { |
| 5 | #endif |
| 6 | |
| 7 | /* Traceback interface */ |
| 8 | |
| 9 | PyAPI_FUNC(int) PyTraceBack_Here(PyFrameObject *); |
| 10 | PyAPI_FUNC(int) PyTraceBack_Print(PyObject *, PyObject *); |
| 11 | |
| 12 | /* Reveal traceback type so we can typecheck traceback objects */ |
| 13 | PyAPI_DATA(PyTypeObject) PyTraceBack_Type; |
| 14 | #define PyTraceBack_Check(v) Py_IS_TYPE(v, &PyTraceBack_Type) |
| 15 | |
| 16 | |
| 17 | #ifndef Py_LIMITED_API |
| 18 | # define Py_CPYTHON_TRACEBACK_H |
| 19 | # include "cpython/traceback.h" |
| 20 | # undef Py_CPYTHON_TRACEBACK_H |
| 21 | #endif |
| 22 | |
| 23 | #ifdef __cplusplus |
| 24 | } |
| 25 | #endif |
| 26 | #endif /* !Py_TRACEBACK_H */ |