Skip to content

Commit

Permalink
Rename macro to require-macros, pass ast, scope, modname
Browse files Browse the repository at this point in the history
  • Loading branch information
rktjmp committed Nov 23, 2021
1 parent 8757ddd commit 1f84666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fennel/specials.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +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)
(utils.hook :require-macros ast scope 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 1f84666

Please sign in to comment.