Skip to content

Commit

Permalink
Made debug output more readable.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 10, 2008
1 parent 64f6f4a commit 601e737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mojoshader_assembler.c
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 601e737

Please sign in to comment.