Skip to content

Commit ae5b99d

Browse files
committed
Write CHECK_EVAL_BREAKER() calls in macros, too
1 parent 4a91988 commit ae5b99d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Python/generated_cases.c.h

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/cases_generator/stacking.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ def write_macro_instr(
376376
if not parts[-1].instr.always_exits:
377377
if not next_instr_is_set and mac.cache_offset:
378378
out.emit(f"next_instr += {mac.cache_offset};")
379+
if parts[-1].instr.check_eval_breaker:
380+
out.emit("CHECK_EVAL_BREAKER();")
379381
out.emit("DISPATCH();")
380382

381383

0 commit comments

Comments
 (0)