4 ms·
It would make sense if the author had meant do clause instead of if clause. Something like that: do { switch (bleh) { case MEH: if (derp)
by epsylon 13y ago
It would make sense if the author had meant do clause instead of if clause.
Something like that:
do {
switch (bleh) {
case MEH:
if (derp) {
break; /* supposed exit the do..while loop early...
except it only exits the switch statement */
}
[...]
break; /* usually there's a break at the end of each
case statement, but the programmer might
not have seen it if it's far away */
[...]
}
fun_stuff(); /* not supposed to be called when
bleh == MEH and derp is non-null */
} while (quux);