-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Wrap some multi-line macros in do { ... } while(0)
in symtable.c
#119981
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
Labels
type-feature
A feature request or enhancement
Comments
There are similar patterns in |
Yes, that's a good idea. Since I was going offline in a few minutes, could you either close this issue or edit the title so that we can perhaps track other files? |
I prefer to open new ones for each piece of work :) |
mliezun
pushed a commit
to mliezun/cpython
that referenced
this issue
Jun 3, 2024
barneygale
pushed a commit
to barneygale/cpython
that referenced
this issue
Jun 5, 2024
noahbkim
pushed a commit
to hudson-trading/cpython
that referenced
this issue
Jul 11, 2024
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Feature or enhancement
Proposal:
While I was implementing #119976, I observed that some macros are not guarded against possible constructions because their content is only wrapped in
{}
but not in the classicaldo { ... } while(0)
construction.For instance, the current
VISIT
macro sometimes requires the semi-colon and sometimes not depending on how it is used, which I find a bit confusing. I think it's preferrable to always require to add the;
.Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: