Example #1
0
 public IMacro GetMacro(string name, int paramNum)
 {
     return(BuiltInMacros.ContainsKey(name) && BuiltInMacros[name].ValidNumParams(paramNum) ? BuiltInMacros[name] : Macros[name][paramNum]);
 }
Example #2
0
 public bool ContainsName(string name)
 {
     return(BuiltInMacros.ContainsKey(name) || Macros.ContainsKey(name));
 }
Example #3
0
 public bool HasMacro(string name, int paramNum)
 {
     return(BuiltInMacros.ContainsKey(name) && BuiltInMacros[name].ValidNumParams(paramNum) || Macros.ContainsKey(name) && Macros[name].ContainsKey(paramNum));
 }