Skip to content

Commit 7c6a288

Browse files
committed
gh-96803: Export _PyInterpreterFrame_GetLine as a private API symbol
1 parent e37ac5f commit 7c6a288

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Include/internal/pycore_frame.h

+3
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ typedef struct _PyInterpreterFrame {
7070
#define _PyInterpreterFrame_LASTI(IF) \
7171
((int)((IF)->prev_instr - _PyCode_CODE((IF)->f_code)))
7272

73+
#define _PyInterpreterFrame_CODE(IF) \
74+
((PyObject*)((IF)->f_code))
75+
7376
static inline PyObject **_PyFrame_Stackbase(_PyInterpreterFrame *f) {
7477
return f->localsplus + f->f_code->co_nlocalsplus;
7578
}

0 commit comments

Comments
 (0)