mojoshader_compiler.c
changeset 868 8e2034c3f175
parent 859 824d67791db0
child 883 df6265a993bc
equal deleted inserted replaced
867:f5f491d2b82b 868:8e2034c3f175
  2459         } // if
  2459         } // if
  2460 
  2460 
  2461         fname = preprocessor_sourcepos(pp, &ctx->sourceline);
  2461         fname = preprocessor_sourcepos(pp, &ctx->sourceline);
  2462         ctx->sourcefile = fname ? stringcache(ctx->strcache, fname) : 0;
  2462         ctx->sourcefile = fname ? stringcache(ctx->strcache, fname) : 0;
  2463 
  2463 
       
  2464         if ((tokenval == TOKEN_HASH) || (tokenval == TOKEN_HASHHASH))
       
  2465             tokenval = TOKEN_BAD_CHARS;
       
  2466 
  2464         if (tokenval == TOKEN_BAD_CHARS)
  2467         if (tokenval == TOKEN_BAD_CHARS)
  2465         {
  2468         {
  2466             fail(ctx, "Bad characters in source file");
  2469             fail(ctx, "Bad characters in source file");
  2467             continue;
  2470             continue;
  2468         } // else if
  2471         } // else if