From 601e7379d7c5d55399cd21774b739a57e16d0c69 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 10 Dec 2008 05:21:32 -0500 Subject: [PATCH] Made debug output more readable. --- mojoshader_assembler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mojoshader_assembler.c b/mojoshader_assembler.c index 48ad7a4f..cbf0310a 100644 --- a/mojoshader_assembler.c +++ b/mojoshader_assembler.c @@ -337,7 +337,7 @@ static inline int tokenize(Context *ctx) (rc == END_OF_STREAM) ? "END_OF_STREAM" : (rc == FAIL) ? "FAIL" : (rc == NOFAIL) ? "NOFAIL" : "???", - ctx->token); + (ctx->token[0] == '\n') ? "\\n" : ctx->token); #endif return rc; } // tokenize @@ -402,7 +402,7 @@ static int nexttoken(Context *ctx, const int ignoreeol, (rc == END_OF_STREAM) ? "END_OF_STREAM" : (rc == FAIL) ? "FAIL" : (rc == NOFAIL) ? "NOFAIL" : "???", - ctx->token); + (ctx->token[0] == '\n') ? "\\n" : ctx->token); #endif if ((rc == END_OF_STREAM) && (!eosok))