shithub: pokecrystal

Download patch

ref: f558edafffd325721a8cc8a663bfa9e0f8ed510e
parent: f2fd544e20a54aece3bb1699e2b4c6a5ff0d4078
author: Bryan Bishop <[email protected]>
date: Thu Jan 10 10:34:30 EST 2013

even faster preprocessor

--- a/preprocessor.py
+++ b/preprocessor.py
@@ -405,9 +405,9 @@
     token = extract_token(asm)
 
     # check against all names
-    try:
+    if token in macro_table:
         return (macro_table[token], token)
-    except:
+    else:
         return (None, None)
 
 def macro_translator(macro, token, line):