summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-08-31 09:37:02 -0500
committerBryan Bishop <kanzure@gmail.com>2013-08-31 09:37:02 -0500
commit0f28e96e4d42b5fee5e7dec094f61fdf9d46577f (patch)
treeeafe1f5b0331ae55bcd16d383732b1881438017c
parenta6237d68257dd3bb963850c205d0ca4a1c46f88a (diff)
remove the show_original_lines global
-rw-r--r--preprocessor.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/preprocessor.py b/preprocessor.py
index b6bdfbe7d..6ddd45539 100644
--- a/preprocessor.py
+++ b/preprocessor.py
@@ -31,9 +31,6 @@ macros += movement_command_classes
macros += music_classes
macros += effect_classes
-# show lines before preprocessing in stdout
-show_original_lines = False
-
# helpful for debugging macros
do_macro_sanity_check = False
@@ -434,11 +431,12 @@ def is_based_on(something, base):
options += [something.__name__]
return (base in options)
-def macro_translator(macro, token, line):
+def macro_translator(macro, token, line, show_original_lines=False):
"""
Converts a line with a macro into a rgbasm-compatible line.
- """
+ @param show_original_lines: show lines before preprocessing in stdout
+ """
assert macro.macro_name == token, "macro/token mismatch"
original_line = line