Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:06:50

0001 /* Limited C API of PyFrame API
0002  *
0003  * Include "frameobject.h" to get the PyFrameObject structure.
0004  */
0005 
0006 #ifndef Py_PYFRAME_H
0007 #define Py_PYFRAME_H
0008 #ifdef __cplusplus
0009 extern "C" {
0010 #endif
0011 
0012 /* Return the line of code the frame is currently executing. */
0013 PyAPI_FUNC(int) PyFrame_GetLineNumber(PyFrameObject *);
0014 
0015 PyAPI_FUNC(PyCodeObject *) PyFrame_GetCode(PyFrameObject *frame);
0016 
0017 #ifndef Py_LIMITED_API
0018 #  define Py_CPYTHON_PYFRAME_H
0019 #  include "cpython/pyframe.h"
0020 #  undef Py_CPYTHON_PYFRAME_H
0021 #endif
0022 
0023 #ifdef __cplusplus
0024 }
0025 #endif
0026 #endif /* !Py_PYFRAME_H */