blob: 3816224201c7e44725d4aa0bf32d1b9da9256bc5 [file] [log] [blame]
Victor Stinner7c59d7c2020-04-28 16:32:48 +02001/* 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
Victor Stinnera42ca742020-04-28 19:01:31 +020017PyAPI_FUNC(PyCodeObject *) PyFrame_GetCode(PyFrameObject *frame);
18
Victor Stinner7c59d7c2020-04-28 16:32:48 +020019#ifdef __cplusplus
20}
21#endif
22#endif /* !Py_PYFRAME_H */