Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant