ref: d46d1901c2214505ceab544c8f62555b3608deed
parent: 16f6619ac8cff1f5a64112e7df4648bea9a007c8
parent: 6d612c8828861998644635352a6b7c479e1efa04
author: Bryan Bishop <[email protected]>
date: Wed Aug 28 12:34:06 EDT 2013
Merge branch 'remove-another-moneybyteparam-special-case' into master
--- a/preprocessor.py
+++ b/preprocessor.py
@@ -12,7 +12,6 @@
DataByteWordMacro,
PointerLabelBeforeBank,
PointerLabelAfterBank,
- MoneyByteParam,
ItemFragment,
TextEndingCommand,
text_command_classes,
@@ -555,8 +554,8 @@
output += ("db " + params[index+1].strip() + "\n")
index += 2
correction += 1
- elif size == 3 and issubclass(param_klass, MoneyByteParam):
- output += ("db " + MoneyByteParam.from_asm(param) + "\n")
+ elif size == 3 and "from_asm" in dir(param_klass):
+ output += ("db " + param_klass.from_asm(param) + "\n")
index += 1
else:
raise Exception, "dunno what to do with this macro " + \