mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
remove the do_macro_sanity_check global
This commit is contained in:
parent
0f28e96e4d
commit
998fa0b198
@ -31,9 +31,6 @@ macros += movement_command_classes
|
|||||||
macros += music_classes
|
macros += music_classes
|
||||||
macros += effect_classes
|
macros += effect_classes
|
||||||
|
|
||||||
# helpful for debugging macros
|
|
||||||
do_macro_sanity_check = False
|
|
||||||
|
|
||||||
chars = {
|
chars = {
|
||||||
"ガ": 0x05,
|
"ガ": 0x05,
|
||||||
"ギ": 0x06,
|
"ギ": 0x06,
|
||||||
@ -431,11 +428,12 @@ def is_based_on(something, base):
|
|||||||
options += [something.__name__]
|
options += [something.__name__]
|
||||||
return (base in options)
|
return (base in options)
|
||||||
|
|
||||||
def macro_translator(macro, token, line, show_original_lines=False):
|
def macro_translator(macro, token, line, show_original_lines=False, do_macro_sanity_check=False):
|
||||||
"""
|
"""
|
||||||
Converts a line with a macro into a rgbasm-compatible line.
|
Converts a line with a macro into a rgbasm-compatible line.
|
||||||
|
|
||||||
@param show_original_lines: show lines before preprocessing in stdout
|
@param show_original_lines: show lines before preprocessing in stdout
|
||||||
|
@param do_macro_sanity_check: helpful for debugging macros
|
||||||
"""
|
"""
|
||||||
assert macro.macro_name == token, "macro/token mismatch"
|
assert macro.macro_name == token, "macro/token mismatch"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user