ref: a74462bc52ee3050e13680cd35156589e7f45555
parent: 473bd192d9eb5767d5cda2ae21a0aa52552fabf6
author: Bryan Bishop <[email protected]>
date: Sat Aug 31 08:03:48 EDT 2013
even better performance for read_line
--- a/preprocessor.py
+++ b/preprocessor.py
@@ -609,7 +609,7 @@
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