mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 01:37:19 +00:00
Be less eager to set macro-form in macex1.
This commit is contained in:
parent
9e5f203302
commit
92f0e1719b
@ -1633,8 +1633,6 @@
|
|||||||
See macex docs for info on on-binding."
|
See macex docs for info on on-binding."
|
||||||
[x &opt on-binding]
|
[x &opt on-binding]
|
||||||
|
|
||||||
(setdyn :macro-form x)
|
|
||||||
|
|
||||||
(when on-binding
|
(when on-binding
|
||||||
(when (symbol? x)
|
(when (symbol? x)
|
||||||
(break (on-binding x))))
|
(break (on-binding x))))
|
||||||
@ -1714,7 +1712,7 @@
|
|||||||
(def m? (entry :macro))
|
(def m? (entry :macro))
|
||||||
(cond
|
(cond
|
||||||
s (s t)
|
s (s t)
|
||||||
m? (m ;(tuple/slice t 1))
|
m? (do (setdyn :macro-form t) (m ;(tuple/slice t 1)))
|
||||||
(tuple/slice (map recur t))))
|
(tuple/slice (map recur t))))
|
||||||
|
|
||||||
(def ret
|
(def ret
|
||||||
|
Loading…
Reference in New Issue
Block a user