By the way I can see that the offending macro is defined in the same generated file as: #define TOKTEXT(tok, txt) tok, (pANTLR3_UINT8)txt so the error is that only one parameter is passed to a two parameter macro.