mojoshader_preprocessor.c
changeset 871 e72ec737ed74
parent 869 5bd359b047f3
child 873 bdffabea8e40
equal deleted inserted replaced
870:f9e20269c20b 871:e72ec737ed74
   878         bogus = 1;
   878         bogus = 1;
   879     else
   879     else
   880         linenum = token_to_int(state);
   880         linenum = token_to_int(state);
   881 
   881 
   882     if (!bogus)
   882     if (!bogus)
   883         bogus = (lexer(state) != TOKEN_STRING_LITERAL);
   883     {
       
   884         Token t = lexer(state);
       
   885         if (t == ((Token) '\n'))
       
   886         {
       
   887             state->line = linenum;
       
   888             return;
       
   889         }
       
   890         bogus = (t != TOKEN_STRING_LITERAL);
       
   891     }
   884 
   892 
   885     if (!bogus)
   893     if (!bogus)
   886     {
   894     {
   887         state->token++;  // skip '\"'...
   895         state->token++;  // skip '\"'...
   888         filename = (char *) alloca(state->tokenlen);
   896         filename = (char *) alloca(state->tokenlen);