You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that code inside of false evaluated #if conditions is skipped, as such this code does not produce any errors
#ifTESTksdfjjkkfjlkas#endif
However, this valid code dos not compile if TEST is not defined, which means code is not being skipped correctly? If TEST is defined, it compiles as expected
However, this valid code dos not compile if TEST is not defined, which means code is not being skipped correctly? If TEST is defined, it compiles as expected
This is expected. Code under a false condition must be a valid token sequence as it gets lexed.
Why?
There might be a /* opening a multi-line comment which comments-out the #endif. But we can't just search for /* characters because they might be in a string literal ("/*") or a single-line comment (// /*).
Unrelated: If I have a few small suggestions and questions, should I post them in Discussions?
If you have specific bug reports or feature requests, post them in Issues.
For generic discussion and questions, use Discussions.
It appears that code inside of false evaluated
#if
conditions is skipped, as such this code does not produce any errorsHowever, this valid code dos not compile if
TEST
is not defined, which means code is not being skipped correctly? IfTEST
is defined, it compiles as expectedAnother error that isn't being skipped correctly: (
TEST
is not defined)Unrelated:
If I have a few small suggestions and questions, should I post them in Discussions?
The text was updated successfully, but these errors were encountered: