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
static int s = xsGetRandomNumber();
would produce an error
Error 0334 `xsGetRandomNumber` is not a valid variable for an integer constant.
but the checker says it's fine
of course, unlike const, they can be changed to another value that is not a literal
static int s = 0; s = xsGetRandomNumber(); /* this is fine */
The text was updated successfully, but these errors were encountered:
That makes sense, a static variable has program lifetime, it must be defined by a constexpr. I can add this check, thanks for the report
Sorry, something went wrong.
Fixed in v0.1.3
No branches or pull requests
would produce an error
but the checker says it's fine
of course, unlike const, they can be changed to another value that is not a literal
The text was updated successfully, but these errors were encountered: