From c39e156f8c56db9e25ed8661fcf55f1bfc3bd162 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 1 Sep 2013 01:44:00 -0500 Subject: don't make global labels for rgbasm macros This adds support to the preprocessor to handle constants.asm from pokered. --- pokemontools/preprocessor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pokemontools/preprocessor.py') diff --git a/pokemontools/preprocessor.py b/pokemontools/preprocessor.py index 87faefd..d9373ac 100644 --- a/pokemontools/preprocessor.py +++ b/pokemontools/preprocessor.py @@ -599,7 +599,7 @@ def read_line(l, macro_table): asm, comment = separate_comment(l) # export all labels - if ':' in asm[:asm.find('"')]: + if ':' in asm[:asm.find('"')] and "macro" not in asm.lower(): sys.stdout.write('GLOBAL ' + asm.split(':')[0] + '\n') # expect preprocessed .asm files -- cgit v1.2.3