Is there a hack to support range case in a c(99?) or objective C switch statement ? I know this is not supported to write something like this:
switch(x) case
GCC has an extension to the C language that allows something similar to your first example, but other than that, if there was a portable/ANSI way of doing it, it would have been done by now. I don't believe there is one.