Skip to content

Wrap some multi-line macros in do { ... } while(0) in {codegen,compile}.c #120017

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

Closed
picnixz opened this issue Jun 4, 2024 · 2 comments
Closed
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@picnixz
Copy link
Member

picnixz commented Jun 4, 2024

Feature or enhancement

Proposal:

Follow-up from the following observation (I'm sending a PR just after):

There are similar patterns in compile.c, maybe it is also worth taking a look? 🤔

Originally posted by @sobolevn in #119981 (comment)

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

@picnixz

This comment was marked as outdated.

@picnixz picnixz changed the title Wrap some multi-line macros in do { ... } while(0) in compile.c Wrap some multi-line macros in do { ... } while(0) in codegen.c Nov 7, 2024
@picnixz picnixz changed the title Wrap some multi-line macros in do { ... } while(0) in codegen.c Wrap some multi-line macros in do { ... } while(0) in {compile,codegen}.c Nov 7, 2024
@picnixz picnixz changed the title Wrap some multi-line macros in do { ... } while(0) in {compile,codegen}.c Wrap some multi-line macros in do { ... } while(0) in {codegen,compile}.c Nov 7, 2024
@picnixz picnixz added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Nov 7, 2024
@picnixz
Copy link
Member Author

picnixz commented Nov 8, 2024

Closing since it was completed. I won't backport it since I didn't backport the others.

@picnixz picnixz closed this as completed Nov 8, 2024
picnixz added a commit to picnixz/cpython that referenced this issue Dec 8, 2024
ebonnal pushed a commit to ebonnal/cpython that referenced this issue Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant