Skip to content

Commit

Permalink
add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Sep 5, 2023
1 parent 04b0967 commit 7bb3b93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
/* Because this avoids the RESUME,
* we need to update instrumentation */
_Py_Instrument(_PyFrame_GetCode(frame), tstate->interp);
assert (frame->instr_ptr == frame->prev_instr + 1);
monitor_throw(tstate, frame, frame->prev_instr);
/* TO DO -- Monitor throw entry. */
goto resume_with_error;
Expand All @@ -733,7 +734,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
#define SET_LOCALS_FROM_FRAME() \
/* Jump back to the last instruction executed... */ \
assert (frame->instr_ptr == frame->prev_instr + 1); \
next_instr = frame->prev_instr + 1; \
next_instr = frame->instr_ptr; \
stack_pointer = _PyFrame_GetStackPointer(frame);

start_frame:
Expand Down

0 comments on commit 7bb3b93

Please sign in to comment.