SDCC compiler switch statement, what is ack: section for?

286 views Asked by At

I saw the following code in CCTL (~line 330) https://github.com/jobytaffey/cctl/blob/master/cctl/main.c

switch(page)
{
   // ...
   ack:
      cons_putc(0);
}

What is the ack: section for? It looks like same as default: to me. I can't find it in the SDCC docs either.

Is this something in C spec?

Thank you

1

There are 1 answers

1
Oliver Charlesworth On BEST ANSWER

It's not a C keyword; it's just a label. Note the corresponding goto statements.