mojoshader_preprocessor.c
changeset 565 c0718e4595e5
parent 564 c669568326fb
child 566 6bd82a5acf62
--- a/mojoshader_preprocessor.c	Wed Feb 11 21:28:48 2009 -0500
+++ b/mojoshader_preprocessor.c	Wed Feb 11 21:29:23 2009 -0500
@@ -350,6 +350,12 @@
             continue;  // pick up again after parent's #include line.
         } // if
 
+        else if (token == TOKEN_PP_INCOMPLETE_COMMENT)
+        {
+            fail(ctx, "Incomplete multiline comment");
+            continue;  // !!! FIXME: we should probably return TOKEN_ERROR or something.
+        } // else if
+
         *_token = token;
         *_len = (unsigned int) (state->source - state->token);
         return state->token;