From f558edafffd325721a8cc8a663bfa9e0f8ed510e Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Thu, 10 Jan 2013 15:34:30 -0600 Subject: [PATCH] even faster preprocessor --- preprocessor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/preprocessor.py b/preprocessor.py index abb672822..a812d3f3f 100644 --- a/preprocessor.py +++ b/preprocessor.py @@ -405,9 +405,9 @@ def macro_test(asm): 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):