don't make global labels for rgbasm macros

This adds support to the preprocessor to handle constants.asm from
pokered.
This commit is contained in:
Bryan Bishop
2013-09-01 01:44:00 -05:00
parent 276111f04d
commit c39e156f8c

View File

@@ -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