pyframe.h 551 B

1234567891011121314151617181920212223242526
  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. /* Return the line of code the frame is currently executing. */
  11. PyAPI_FUNC(int) PyFrame_GetLineNumber(PyFrameObject *);
  12. PyAPI_FUNC(PyCodeObject *) PyFrame_GetCode(PyFrameObject *frame);
  13. #ifndef Py_LIMITED_API
  14. # define Py_CPYTHON_PYFRAME_H
  15. # include "cpython/pyframe.h"
  16. # undef Py_CPYTHON_PYFRAME_H
  17. #endif
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif /* !Py_PYFRAME_H */