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
  • Loading branch information
pablogsal committed Sep 15, 2022
1 parent e37ac5f commit 7c6a288
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 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

0 comments on commit 7c6a288

Please sign in to comment.