From 413c46e2eec44fa4acac07cbdbaaf25bba46a641 Mon Sep 17 00:00:00 2001 From: Michael Camilleri Date: Fri, 14 Jan 2022 17:15:42 +0900 Subject: [PATCH] Fix redefinable macros --- src/core/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/compile.c b/src/core/compile.c index 62a47d80..a4c8c2bf 100644 --- a/src/core/compile.c +++ b/src/core/compile.c @@ -657,7 +657,7 @@ static int macroexpand1( } Janet macroval; JanetBindingType btype = janet_resolve(c->env, name, ¯oval); - if (btype != JANET_BINDING_MACRO || + if (!(btype == JANET_BINDING_MACRO || btype == JANET_BINDING_DYNAMIC_MACRO) || !janet_checktype(macroval, JANET_FUNCTION)) return 0;