mojoshader_preprocessor.c
changeset 754 d405cfa22392
parent 748 818ae6582f24
child 755 6a7aa96c51c7
equal deleted inserted replaced
753:6f6161ad71aa 754:d405cfa22392
   948     IncludeState *state = ctx->include_stack;
   948     IncludeState *state = ctx->include_stack;
   949     unsigned int i;
   949     unsigned int i;
   950 
   950 
   951     if (lexer(state) != TOKEN_IDENTIFIER)
   951     if (lexer(state) != TOKEN_IDENTIFIER)
   952     {
   952     {
   953         fail(ctx, "Macro names must be indentifiers");
   953         fail(ctx, "Macro names must be identifiers");
   954         return;
   954         return;
   955     } // if
   955     } // if
   956 
   956 
   957     char *definition = NULL;
   957     char *definition = NULL;
   958     char *sym = (char *) Malloc(ctx, state->tokenlen+1);
   958     char *sym = (char *) Malloc(ctx, state->tokenlen+1);