pyframe.h 466 B

12345678910111213141516171819202122
  1. /* Limited C API of PyFrame API
  2. *
  3. * Include "frameobject.h" to get the PyFrameObject structure.
  4. */
  5. #ifndef Py_PYFRAME_H
  6. #define Py_PYFRAME_H
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. typedef struct _frame PyFrameObject;
  11. /* Return the line of code the frame is currently executing. */
  12. PyAPI_FUNC(int) PyFrame_GetLineNumber(PyFrameObject *);
  13. PyAPI_FUNC(PyCodeObject *) PyFrame_GetCode(PyFrameObject *frame);
  14. #ifdef __cplusplus
  15. }
  16. #endif
  17. #endif /* !Py_PYFRAME_H */