summaryrefslogtreecommitdiff
path: root/pokemontools/preprocessor.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-09-01 01:52:01 -0500
committerBryan Bishop <kanzure@gmail.com>2013-09-01 01:52:01 -0500
commitfc6785b87b7ddd27437ac2ac15bcc0870cc0fe90 (patch)
treeb50aed80641552790a3dc53c0e8711d53626ac17 /pokemontools/preprocessor.py
parent276111f04dcc3e937f1a16f4b7066934409f8ad4 (diff)
parentc39e156f8c56db9e25ed8661fcf55f1bfc3bd162 (diff)
Merge branch 'pokered-preprocessor' into dump-pokered-extras
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