fix exprCase

This commit is contained in:
2021-11-27 20:07:41 -07:00
parent 2b759680dd
commit 8bf5a12343

View File

@@ -1166,7 +1166,7 @@ class Macros {
static var exprCaseFunctions:Map<String, ReaderExp->ReaderExp> = [];
public static function exprCase(id:String, toMatchValue:ReaderExp, i:KissInterp):ReaderExp {
return i.variables["Helpers"].eval(exprCaseFunctions[id](toMatchValue));
return i.variables["eval"](exprCaseFunctions[id](toMatchValue));
}
static function matchExpr(pattern:ReaderExp, instance:ReaderExp):Bool {