mojoshader_compiler.c
changeset 716 94a804b54078
parent 714 e8ed66bfff18
child 721 82d1aec6b549
--- a/mojoshader_compiler.c	Sat Feb 28 15:35:58 2009 -0500
+++ b/mojoshader_compiler.c	Sat Feb 28 15:44:43 2009 -0500
@@ -9,6 +9,10 @@
     Token tokenval;         // assembler token!
 } Context;
 
+#if DEBUG_COMPILER_PARSER
+#define LEMON_SUPPORT_TRACING 1
+#endif
+
 #define __MOJOSHADER_HLSL_COMPILER__ 1
 #include "mojoshader_parser_hlsl.h"
 
@@ -130,7 +134,10 @@
                                            defines, define_count, 0, m, f, d);
 
     void *pParser = ParseHLSLAlloc(m, d);
-    ParseHLSLTrace(stdout, "TRACE: ");
+
+    #if DEBUG_COMPILER_PARSER
+    ParseHLSLTrace(stdout, "COMPILER: ");
+    #endif
 
     do {
         ctx.token = preprocessor_nexttoken(ctx.preprocessor,