ForNeVeR / ForNeVeR/Cesium

Static local variable support

Open
#342 0 comments 0 reactions 0 assignees View on GitHub
area:compiler kind:feature status:help-wanted
Dominant language
C#
Stars
451
Forks
49
Avg merge
13h 59m
Merged PRs (30d)
6

Description

We should support static local variables properly, i.e.
```c
void incrementAndPrint(void) {
static int counter = 0;
++counter;
printfn("%d", counter);
}

int main(void) {
incrementAndPrint(); // 1
incrementAndPrint(); // 2
}
```

Look for number `342` in the sources when implementing this feature.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.