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
In the example below, returnsOne() is only declared and used when CONFIG_ONE is defined, but SugarC still reports a type error when it is used.
returnsOne()
CONFIG_ONE
#ifdef CONFIG_ONE int returnsOne() { return 1; } #endif /* int returnsZero(int input) { if (input == 1) return 0; else return returnsZero(input - 1); } */ int func(int input) { int x = 1; /* if (2 < 3) { x++; } */ #ifdef CONFIG_ONE if (!returnsOne()) { x = 4; } #endif /* if (returnsZero(2)) { x--; } */ } int main(void) { return func(2); }
The text was updated successfully, but these errors were encountered:
paulgazz
No branches or pull requests
In the example below,
returnsOne()
is only declared and used whenCONFIG_ONE
is defined, but SugarC still reports a type error when it is used.The text was updated successfully, but these errors were encountered: