summaryrefslogtreecommitdiff
path: root/preprocessor.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-08-31 09:46:11 -0500
committerBryan Bishop <kanzure@gmail.com>2013-08-31 09:46:11 -0500
commitecedde19931bd7d1eb71c59498dab98944639b85 (patch)
tree6c6bf3739ce3c89f344e9a279f28426e70b196d3 /preprocessor.py
parent1ce2bccd3747f5c311f40389fa3895e29dfae21b (diff)
replace an assert in macro_translator
Use a MacroException instead of an AssertionError.
Diffstat (limited to 'preprocessor.py')
-rw-r--r--preprocessor.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/preprocessor.py b/preprocessor.py
index 69121747d..a6a9efd29 100644
--- a/preprocessor.py
+++ b/preprocessor.py
@@ -449,7 +449,8 @@ def macro_translator(macro, token, line):
Converts a line with a macro into a rgbasm-compatible line.
"""
- assert macro.macro_name == token, "macro/token mismatch"
+ if macro.macro_name != token:
+ raise MacroException("macro/token mismatch")
original_line = line