Switches with both uniform and varying "switch" expressions are supported. Switch statements with varying expressions and very large numbers of labels may not perform well; some issues to be filed shortly will track opportunities for improving these.
13 lines
187 B
Plaintext
13 lines
187 B
Plaintext
// "continue" statement illegal outside of for/while/do/foreach loops
|
|
|
|
void foo(float f) {
|
|
switch (f) {
|
|
case 1:
|
|
++f;
|
|
continue;
|
|
case 2:
|
|
f = 0;
|
|
}
|
|
}
|
|
|