Skip to content
Permalink
Browse files
Preprocessor should return TOKEN_EOI when we finish the whole include…
… stack.
  • Loading branch information
icculus committed Feb 10, 2009
1 parent 1a78532 commit fdcb89a8a784626edcc400478edeff69117e3f3c
Showing with 4 additions and 0 deletions.
  1. +4 −0 mojoshader_preprocessor.c
@@ -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)
{

0 comments on commit fdcb89a

Please sign in to comment.