Closed deanm closed 7 years ago
Hey thanks for reporting this one, it's fixed now :). Turned out to be an error when parsing macro calls: It was counting opening and closing parenthesis when collecting macro call arguments, but when counting it was skipping the character, doh!
#if
macro, like #if 3 * 4 == 12
, then it will leave the macro branch untouched because it can't evaluate the expression. This has to be done anyway for macros that are impossible to resolve at compiletime, ie #if GL_OES_standard_derivatives
. But it will resolve all resolvable #ifdef
branches
Possibly related to issue #5 ?
Some code like:
Leads to
Parser Warning: syntax error, '.0',