diff options
Diffstat (limited to 'Include/pyframe.h')
-rw-r--r-- | Include/pyframe.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Include/pyframe.h b/Include/pyframe.h new file mode 100644 index 0000000..d3404cd --- /dev/null +++ b/Include/pyframe.h @@ -0,0 +1,20 @@ +/* Limited C API of PyFrame API + * + * Include "frameobject.h" to get the PyFrameObject structure. + */ + +#ifndef Py_PYFRAME_H +#define Py_PYFRAME_H +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct _frame PyFrameObject; + +/* Return the line of code the frame is currently executing. */ +PyAPI_FUNC(int) PyFrame_GetLineNumber(PyFrameObject *); + +#ifdef __cplusplus +} +#endif +#endif /* !Py_PYFRAME_H */ |