Skip to content

Commit fb5b370

Browse files
committed
gh-96803: Export _PyInterpreterFrame_GetLine as a private API symbol
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
1 parent e37ac5f commit fb5b370

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Include/internal/pycore_frame.h

+4-1
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
}
@@ -222,7 +225,7 @@ _PyFrame_PushUnchecked(PyThreadState *tstate, PyFunctionObject *func)
222225
return new_frame;
223226
}
224227

225-
int _PyInterpreterFrame_GetLine(_PyInterpreterFrame *frame);
228+
PyAPI_FUNC(int) _PyInterpreterFrame_GetLine(_PyInterpreterFrame *frame);
226229

227230
static inline
228231
PyGenObject *_PyFrame_GetGenerator(_PyInterpreterFrame *frame)

0 commit comments

Comments
 (0)