From 662f442221945819dc5cc17e45639e4352517b10 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Thu, 10 Jan 2013 15:42:43 -0600 Subject: [PATCH] disable '; original line' by default --- preprocessor.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/preprocessor.py b/preprocessor.py index a812d3f3f..533615889 100644 --- a/preprocessor.py +++ b/preprocessor.py @@ -32,6 +32,9 @@ macros = command_classes + \ movement_command_classes + \ music_classes +# show lines before preprocessing in stdout +show_original_lines = False + chars = { "ガ": 0x05, "ギ": 0x06, @@ -445,7 +448,8 @@ def macro_translator(macro, token, line): raise Exception, "macro has no params?" # write out a comment showing the original line - sys.stdout.write("; original_line: " + original_line) + if show_original_lines: + sys.stdout.write("; original_line: " + original_line) # "db" is a macro because of TextEndingCommand # rgbasm can handle "db" so no preprocessing is required