diff options
| author | Bryan Bishop <kanzure@gmail.com> | 2013-08-31 09:46:11 -0500 |
|---|---|---|
| committer | Bryan Bishop <kanzure@gmail.com> | 2013-08-31 09:46:11 -0500 |
| commit | ecedde19931bd7d1eb71c59498dab98944639b85 (patch) | |
| tree | 6c6bf3739ce3c89f344e9a279f28426e70b196d3 | |
| parent | 1ce2bccd3747f5c311f40389fa3895e29dfae21b (diff) | |
replace an assert in macro_translator
Use a MacroException instead of an AssertionError.
| -rw-r--r-- | preprocessor.py | 3 |
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 |
