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

Static local variables cannot be declared inside IFs #146

Open
JulianKemmerer opened this issue Nov 5, 2022 · 0 comments
Open

Static local variables cannot be declared inside IFs #146

JulianKemmerer opened this issue Nov 5, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@JulianKemmerer
Copy link
Owner

JulianKemmerer commented Nov 5, 2022

Ex.

static uint32_t my_var; // Works
if(cond){
   // static uint32_t my_var; // Does not work
   my_var += 1;
}
@JulianKemmerer JulianKemmerer added the bug Something isn't working label Nov 5, 2022
@JulianKemmerer JulianKemmerer self-assigned this Nov 5, 2022
@JulianKemmerer JulianKemmerer removed their assignment Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant