title: Simulater/Generated switch statement range in c
body: <p>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:</p>
  
  <pre><code>switch(x)
     case 1:
     case 2..10:
     case 11:
  </code></pre>
  
  <p>But I was thinking there should be a way to generate code with a #define macro. Of course
  I can define a macro with the list of cases but I was hoping for a more elegant way like
  CASERANGE(x,x+10) which would generate:</p>
  
  <pre><code>case x
  case x+1
  case x+2
  </code></pre>
  
  <p>is it even possible ?</p>