Skip to content

Commit

Permalink
Sync Aniseed in-scope? macro change
Browse files Browse the repository at this point in the history
  • Loading branch information
Olical committed Feb 12, 2022
1 parent 5bc26ea commit 5d5c562
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/conjure/aniseed/macros.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@
;; Checks surrounding scope for *module* and, if found, makes sure *module* is
;; inserted after `last-expr` (and therefore *module* is returned)
(fn wrap-last-expr [last-expr]
(if (rawget (. (get-scope) :symmeta) :*module*)
`(do ,last-expr ,(sym :*module*))
(if (in-scope? mod-sym)
`(do ,last-expr ,mod-sym)
last-expr))

;; Used by aniseed.compile to wrap the entire body of a file, replacing the
Expand Down

0 comments on commit 5d5c562

Please sign in to comment.