Shader version: 100
ERROR: node is still EOpNull!
0:? Linker Objects
+0:? 'n' ( global highp int)
Linked vertex stage:
Shader version: 100
ERROR: node is still EOpNull!
0:? Linker Objects
+0:? 'n' ( global highp int)
ERROR: 12:9002: '#if' : unexpected tokens following directive
ERROR: 12:9014: 'FOOOM' : undeclared identifier
ERROR: 12:9014: '=' : cannot convert from ' temp float' to ' global int'
-ERROR: 12:9016: 'preprocessor evaluation' : can't evaluate expression
+ERROR: 12:9015: 'preprocessor evaluation' : can't evaluate expression
ERROR: 12:9016: 'preprocessor evaluation' : bad expression
ERROR: 12:9500: 'preprocessor evaluation' : bad expression
ERROR: 12:9500: '#if' : unexpected tokens following directive
TSourceLoc loc = ppToken->loc; // in case we go to the next line before discovering the error
in->mac = macro;
if (macro->functionLike) {
- int token = scanToken(ppToken);
+ // We don't know yet if this will be a successful call of a
+ // function-like macro; need to look for a '(', but without trashing
+ // the passed in ppToken, until we know we are no longer speculative.
+ TPpToken parenToken;
+ int token = scanToken(&parenToken);
if (newLineOkay) {
while (token == '\n')
- token = scanToken(ppToken);
+ token = scanToken(&parenToken);
}
if (token != '(') {
- // function-like macro called with object-like syntax: okay, don't expand
- UngetToken(token, ppToken);
+ // Function-like macro called with object-like syntax: okay, don't expand.
+ // (We ate exactly one token that might not be white space; put it back.
+ UngetToken(token, &parenToken);
delete in;
return MacroExpandNotStarted;
}