mirror of https://github.com/pret/pokecrystal.git
disable macro error checking by default
This commit is contained in:
parent
fe8476d6bc
commit
849a57c9f1
|
@ -35,6 +35,9 @@ macros = command_classes + \
|
||||||
# show lines before preprocessing in stdout
|
# show lines before preprocessing in stdout
|
||||||
show_original_lines = False
|
show_original_lines = False
|
||||||
|
|
||||||
|
# helpful for debugging macros
|
||||||
|
do_macro_sanity_check = False
|
||||||
|
|
||||||
chars = {
|
chars = {
|
||||||
"ガ": 0x05,
|
"ガ": 0x05,
|
||||||
"ギ": 0x06,
|
"ギ": 0x06,
|
||||||
|
@ -462,10 +465,12 @@ def macro_translator(macro, token, line):
|
||||||
# do: all scripting macros
|
# do: all scripting macros
|
||||||
# don't: signpost, warp_def, person_event, xy_trigger
|
# don't: signpost, warp_def, person_event, xy_trigger
|
||||||
if not macro.override_byte_check:
|
if not macro.override_byte_check:
|
||||||
sys.stdout.write("db $%.2x\n" % (macro.id))
|
sys.stdout.write("db ${0:02X}\n".format(macro.id))
|
||||||
|
|
||||||
# --- long-winded sanity check goes here ---
|
# --- long-winded sanity check goes here ---
|
||||||
|
|
||||||
|
if do_macro_sanity_check:
|
||||||
|
|
||||||
# sanity check... this won't work because PointerLabelBeforeBank shows
|
# sanity check... this won't work because PointerLabelBeforeBank shows
|
||||||
# up as two params, so these two lengths will always be different.
|
# up as two params, so these two lengths will always be different.
|
||||||
#assert len(params) == len(macro.param_types), \
|
#assert len(params) == len(macro.param_types), \
|
||||||
|
|
Loading…
Reference in New Issue