Skip to content

Commit

Permalink
filename in #line is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
aras-p committed Feb 25, 2010
1 parent e696527 commit e335821
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mojoshader_preprocessor.c
Expand Up @@ -880,7 +880,15 @@ static void handle_pp_line(Context *ctx)
linenum = token_to_int(state);

if (!bogus)
bogus = (lexer(state) != TOKEN_STRING_LITERAL);
{
Token t = lexer(state);
if (t == ((Token) '\n'))
{
state->line = linenum;
return;
}
bogus = (t != TOKEN_STRING_LITERAL);
}

if (!bogus)
{
Expand Down

0 comments on commit e335821

Please sign in to comment.