ref: ecedde19931bd7d1eb71c59498dab98944639b85
parent: 1ce2bccd3747f5c311f40389fa3895e29dfae21b
author: Bryan Bishop <[email protected]>
date: Sat Aug 31 05:46:11 EDT 2013
replace an assert in macro_translator Use a MacroException instead of an AssertionError.
--- a/preprocessor.py
+++ b/preprocessor.py
@@ -449,7 +449,8 @@
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