8000 gh-120017: use 'do-while(0)' in some `{codegen,compile}.c` multi-line macros by picnixz · Pull Request #120018 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-120017: use 'do-while(0)' in some {codegen,compile}.c multi-line macros #120018

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Nov 7, 2024
Prev Previous commit
Next Next commit
Remove un-necessary comment
  • Loading branch information
picnixz committed Nov 7, 2024
commit 0104fcde86bf2638bde7a89445f8d3b6dd24568d
1 change: 0 additions & 1 deletion Python/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ typedef _PyCompile_FBlockInfo fblockinfo;

#define LOC(x) SRC_LOCATION_FROM_AST(x)

// This macro must not be enclosed in brackets since it creates a new variable.
#define NEW_JUMP_TARGET_LABEL(C, NAME) \
jump_target_label NAME = _PyInstructionSequence_NewLabel(INSTR_SEQUENCE(C)); \
if (!IS_JUMP_TARGET_LABEL(NAME)) { \
Expand Down
Loading
0