We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
f->stackpointer
_PyFrame_Stackbase(f)
1 parent 50b5370 commit 8320582Copy full SHA for 8320582
Include/internal/pycore_interpframe.h
@@ -48,13 +48,13 @@ static inline _PyStackRef *_PyFrame_Stackbase(_PyInterpreterFrame *f) {
48
}
49
50
static inline _PyStackRef _PyFrame_StackPeek(_PyInterpreterFrame *f) {
51
- assert(f->stackpointer > f->localsplus + _PyFrame_GetCode(f)->co_nlocalsplus);
+ assert(f->stackpointer > _PyFrame_Stackbase(f));
52
assert(!PyStackRef_IsNull(f->stackpointer[-1]));
53
return f->stackpointer[-1];
54
55
56
static inline _PyStackRef _PyFrame_StackPop(_PyInterpreterFrame *f) {
57
58
f->stackpointer--;
59
return *f->stackpointer;
60
0 commit comments