summaryrefslogtreecommitdiff
path: root/pokemontools/preprocessor.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-09-01 01:44:00 -0500
committerBryan Bishop <kanzure@gmail.com>2013-09-01 01:44:00 -0500
commitc39e156f8c56db9e25ed8661fcf55f1bfc3bd162 (patch)
treeb50aed80641552790a3dc53c0e8711d53626ac17 /pokemontools/preprocessor.py
parent276111f04dcc3e937f1a16f4b7066934409f8ad4 (diff)
don't make global labels for rgbasm macros
This adds support to the preprocessor to handle constants.asm from pokered.
Diffstat (limited to 'pokemontools/preprocessor.py')
-rw-r--r--pokemontools/preprocessor.py2
1 files changed, 1 insertions, 1 deletions
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