Skip to content

Commit

Permalink
Preprocessor: Fixed macro arguments prepended with > 1 char of whites…
Browse files Browse the repository at this point in the history
…pace.
  • Loading branch information
icculus committed Nov 16, 2010
1 parent 1451e18 commit eb85571
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mojoshader_preprocessor.c
Expand Up @@ -1394,7 +1394,8 @@ static int handle_macro_args(Context *ctx, const char *sym, const Define *def)
// don't add whitespace to the start, so we recognize
// void calls correctly.
origexpr = expr = " ";
origexprlen = (buffer_size(buffer) == 0) ? 0 : 1;
origexprlen = (buffer_size(origbuffer) == 0) ? 0 : 1;
exprlen = (buffer_size(buffer) == 0) ? 0 : 1;
} // else if

else if (t == TOKEN_IDENTIFIER)
Expand Down

0 comments on commit eb85571

Please sign in to comment.