Cesium icon indicating copy to clipboard operation
Cesium copied to clipboard

Static local variable support

Open ForNeVeR opened this issue 2 years ago • 0 comments

We should support static local variables properly, i.e.

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.

ForNeVeR avatar Oct 23 '22 17:10 ForNeVeR