I am writing code that uses computed goto. Syntax checking puts each goto *ptr and &&label instance as a syntax error. Anyway, to stop this?
Adding alkom:
Example for computed gotos (gcc extension):
... void * pLbl = NULL; if (<some expression>) pLbl = &&lbl1; else if (<some other expression>) pLbl = &&lbl2; if (pLbl) goto * pLbl; goto lbl0; lbl1: <do some stuff> goto lbl0; lbl2: <do some other stuff> goto lbl0; lbl0: ...
( eclipse seeing this code turn yellow)
c gcc eclipse eclipse-cdt gcc-extensions
cleong
source share