|
|
|
|
|
by JonChesterfield
715 days ago
|
|
This features the construct switch(k) {
if (0) case 0: x = 1;
if (0) case 1: x = 2;
if (0) default: x = 3;
}
which is a switch where you don't have to write break at the end of every clause. #define brkcase if (0) case
That might be worth using. Compilers won't love the control flow but they'll probably delete it effectively. |
|