Skip to content

Commit

Permalink
Add required-macro hook
Browse files Browse the repository at this point in the history
  • Loading branch information
rktjmp committed Nov 23, 2021
1 parent 9b2bd8e commit 8757ddd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fennel/specials.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 8757ddd

Please sign in to comment.