Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't add spaces to the start of #define data.
  • Loading branch information
icculus committed Feb 17, 2009
1 parent a8e2464 commit 90cd268
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mojoshader_preprocessor.c
Expand Up @@ -899,8 +899,11 @@ static void handle_pp_define(Context *ctx)
break;

case ((Token) ' '): // may not actually point to ' '.
if (!add_to_buffer(&buffer, &space, 1, m, d))
ctx->out_of_memory = 1;
if (buffer.total_bytes > 0)
{
if (!add_to_buffer(&buffer, &space, 1, m, d))
ctx->out_of_memory = 1;
} // if
break;

default:
Expand Down

0 comments on commit 90cd268

Please sign in to comment.