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 Sep 25, 2021
1 parent 20e6b50 commit a6ddb01
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 @@ -1137,6 +1137,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)
(add-macros (. macro-loaded modname) ast scope parent)))

(doc-special :require-macros [:macro-module-name]
Expand Down

0 comments on commit a6ddb01

Please sign in to comment.