From 8bf5a12343ba5099fe2fd8d4af676ac123f26773 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sat, 27 Nov 2021 20:07:41 -0700 Subject: [PATCH] fix exprCase --- src/kiss/Macros.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kiss/Macros.hx b/src/kiss/Macros.hx index caa8306..27fb9ff 100644 --- a/src/kiss/Macros.hx +++ b/src/kiss/Macros.hx @@ -1166,7 +1166,7 @@ class Macros { static var exprCaseFunctions:MapReaderExp> = []; 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 {