Skip to content

Commit

Permalink
pythongh-96803: Export _PyInterpreterFrame_GetLine as a private API s…
Browse files Browse the repository at this point in the history
…ymbol

Signed-off-by: Pablo Galindo <[email protected]>
  • Loading branch information
pablogsal committed Sep 15, 2022
1 parent e37ac5f commit fb5b370
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Include/internal/pycore_frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ typedef struct _PyInterpreterFrame {
#define _PyInterpreterFrame_LASTI(IF) \
((int)((IF)->prev_instr - _PyCode_CODE((IF)->f_code)))

#define _PyInterpreterFrame_CODE(IF) \
((PyObject*)((IF)->f_code))

static inline PyObject **_PyFrame_Stackbase(_PyInterpreterFrame *f) {
return f->localsplus + f->f_code->co_nlocalsplus;
}
Expand Down Expand Up @@ -222,7 +225,7 @@ _PyFrame_PushUnchecked(PyThreadState *tstate, PyFunctionObject *func)
return new_frame;
}

int _PyInterpreterFrame_GetLine(_PyInterpreterFrame *frame);
PyAPI_FUNC(int) _PyInterpreterFrame_GetLine(_PyInterpreterFrame *frame);

static inline
PyGenObject *_PyFrame_GetGenerator(_PyInterpreterFrame *frame)
Expand Down

0 comments on commit fb5b370

Please sign in to comment.