mojoshader_preprocessor.c
changeset 634 b7fd8aa02bf4
parent 631 5045dcc9fdaf
child 635 be3b428802a1
--- a/mojoshader_preprocessor.c	Sun Feb 15 02:51:39 2009 -0500
+++ b/mojoshader_preprocessor.c	Mon Feb 16 20:29:28 2009 -0500
@@ -571,9 +571,11 @@
 static int require_newline(IncludeState *state)
 {
     const char *source = state->source;
+    const unsigned int bytes_left = state->bytes_left;
     const unsigned int linenum = state->line;
     const Token token = preprocessor_internal_lexer(state);
     state->source = source;  // rewind no matter what.
+    state->bytes_left = bytes_left;
     state->line = linenum;
     if (token == TOKEN_INCOMPLETE_COMMENT)
         return 1; // call it an eol.