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

source code of include/python3.10/pyframe.h