Report bad characters in the assembler.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 20 Feb 2010 23:41:12 -0500
changeset 840 84a0c6807aa8
parent 839 40e990813f41
child 841 05fa7ce0a202
Report bad characters in the assembler.
mojoshader_assembler.c
--- a/mojoshader_assembler.c	Sat Feb 20 21:50:48 2010 -0500
+++ b/mojoshader_assembler.c	Sat Feb 20 23:41:12 2010 -0500
@@ -226,6 +226,12 @@
                 break;
             } // if
 
+            else if (ctx->tokenval == TOKEN_BAD_CHARS)
+            {
+                fail(ctx, "Bad characters in source file");
+                continue;
+            } // else if
+
             else if (ctx->tokenval == TOKEN_PREPROCESSING_ERROR)
             {
                 fail(ctx, ctx->token);