]> git.sur5r.net Git - cc65/blobdiff - src/cc65/macrotab.c
Minor speedup
[cc65] / src / cc65 / macrotab.c
index 905693797688e723627c044eb2e9e949aefc0996..45a290fe7f6845a89d379ae121b75bba4be0acb2 100644 (file)
@@ -165,7 +165,7 @@ void InsertMacro (Macro* M)
     /* Increment the number of macros starting with this char */
     MacroFlagTab[(unsigned)(unsigned char)M->Name[0]]++;
 }
-    
+
 
 
 int UndefineMacro (const char* Name)
@@ -239,8 +239,8 @@ Macro* FindMacro (const char* Name)
 int IsMacro (const char* Name)
 /* Return true if the given name is the name of a macro, return false otherwise */
 {
-    return FindMacro(Name) != 0;
-}
+    return MaybeMacro(Name[0]) && FindMacro(Name) != 0;
+}