From 8757dddf47d1baa77c33511db2f8acaf6a3edb35 Mon Sep 17 00:00:00 2001 From: Oliver Marriott Date: Sun, 26 Sep 2021 01:49:39 +1000 Subject: [PATCH] Add required-macro hook --- src/fennel/specials.fnl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fennel/specials.fnl b/src/fennel/specials.fnl index 8e0b3b68..ec911c47 100644 --- a/src/fennel/specials.fnl +++ b/src/fennel/specials.fnl @@ -1116,6 +1116,7 @@ modules in the compiler environment." (let [(loader filename) (search-macro-module modname 1)] (compiler.assert loader (.. modname " module not found.") ast) (tset macro-loaded modname (loader modname filename)))) + (utils.hook :required-macro modname) ;; if we're called from import-macros, return the modname, else add them ;; to scope directly (if (= :import-macros (tostring (. ast 1)))