mojoshader_preprocessor.c
changeset 727 6978fac0fa31
parent 723 6d58b504cc6e
child 729 92cc053fbf75
--- a/mojoshader_preprocessor.c	Fri Mar 06 23:19:40 2009 -0500
+++ b/mojoshader_preprocessor.c	Fri Mar 06 23:22:04 2009 -0500
@@ -30,7 +30,8 @@
 #if DEBUG_TOKENIZER
 static void print_debug_lexing_position(IncludeState *s)
 {
-    printf("NOW LEXING %s:%d ...\n", s->filename, s->line);
+    if (s != NULL)
+        printf("NOW LEXING %s:%d ...\n", s->filename, s->line);
 } // print_debug_lexing_position
 #else
 #define print_debug_lexing_position(s)