Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Preprocessor should return TOKEN_EOI when we finish the whole include…
… stack.
  • Loading branch information
icculus committed Feb 10, 2009
1 parent 1a78532 commit fdcb89a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mojoshader_preprocessor.c
Expand Up @@ -333,7 +333,11 @@ const char *preprocessor_nexttoken(Preprocessor *_ctx, unsigned int *_len,
{
IncludeState *state = ctx->include_stack;
if (state == NULL)
{
*_token = TOKEN_EOI;
*_len = 0;
return NULL; // we're done!
} // if

if (state->insert_token != TOKEN_UNKNOWN)
{
Expand Down

0 comments on commit fdcb89a

Please sign in to comment.