summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-08-31 12:03:48 -0500
committerBryan Bishop <kanzure@gmail.com>2013-08-31 12:03:48 -0500
commita74462bc52ee3050e13680cd35156589e7f45555 (patch)
tree455ba2a9bff72f72a4ecbc6defdafea0f5d0f300
parent473bd192d9eb5767d5cda2ae21a0aa52552fabf6 (diff)
even better performance for read_line
-rw-r--r--preprocessor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/preprocessor.py b/preprocessor.py
index 79fb9224f..10e407380 100644
--- a/preprocessor.py
+++ b/preprocessor.py
@@ -609,7 +609,7 @@ def macro_translator(macro, token, line, show_original_lines=False, do_macro_san
def read_line(l, macro_table):
"""Preprocesses a given line of asm."""
- if l in ["\n", ""]:
+ if l in ["\n", ""] or l[0] == ";":
sys.stdout.write(l)
return # jump out early