Skip to content
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

Nested #eval causes spurious warning #55

Open
DaSpudLord opened this issue Jan 17, 2022 · 0 comments
Open

Nested #eval causes spurious warning #55

DaSpudLord opened this issue Jan 17, 2022 · 0 comments
Labels

Comments

@DaSpudLord
Copy link

If any meta-macro that does #eval-style evaluation is nested within any other such meta-macro, GPP prints a warning about attempting to redefine the #defined macro. Seems to be caused by the inner #eval attempting to define the #defined macro while the outer #eval has already done so.

Example Input (directly via terminal, in default mode):

$ gpp
#eval #eval x

Output:

stdin:2: warning: the defined(...) macro is already defined
x

This is in GPP 2.27. Same issue occurs if the input is from a file rather than from stdin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants