We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
error: found trailing tokens after preprocessor expression
Steps to reproduce.
git clone https://github.com/PhilippRados/wrecc.git
cd wrecc
cargo b
./target/debug/wrecc test.c
test.c
#define mytest(a, b) 0 int main(void) { #if mytest(1, 2) return 1; #else return 2; #endif }
Actual result:
error: found trailing tokens after preprocessor expression | --> in test.c:5:5 | 5 #if mytest(1, 2) | ^ 1 error generated.
Expected result:
The text was updated successfully, but these errors were encountered:
Yes that's probably because of the currently unsupported function-like macros. I will focus on the preprocessor again after this next release.
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce.
git clone https://github.com/PhilippRados/wrecc.git
cd wrecc
cargo b
./target/debug/wrecc test.c
test.c
Actual result:
Expected result:
The text was updated successfully, but these errors were encountered: