PP: Recognize the '::' token, and translate appropriately to GLSL/HLSL token.

This commit is contained in:
John Kessenich 2017-03-10 18:03:43 -07:00
parent 6212e86faa
commit 523e20dc02
8 changed files with 26 additions and 3 deletions

View file

@ -701,6 +701,10 @@ int TScanContext::tokenize(TPpContext* pp, TParserToken& token)
case PpAtomDecrement: return DEC_OP;
case PpAtomIncrement: return INC_OP;
case PpAtomColonColon:
parseContext.error(loc, "not supported", "::", "");
break;
case PpAtomConstInt: parserToken->sType.lex.i = ppToken.ival; return INTCONSTANT;
case PpAtomConstUint: parserToken->sType.lex.i = ppToken.ival; return UINTCONSTANT;
case PpAtomConstInt64: parserToken->sType.lex.i64 = ppToken.i64val; return INT64CONSTANT;