We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7d4fa2c + 0297126 commit 12cacc6Copy full SHA for 12cacc6
pixie/stdlib.pxi
@@ -2726,7 +2726,7 @@ Calling this function on something that is not ISeqable returns a seq with that
2726
(= () form))
2727
form
2728
(let [[sym & args] form
2729
- fvar (resolve sym)]
+ fvar (resolve-in *ns* sym)]
2730
(if (and fvar (macro? @fvar))
2731
(apply @fvar args)
2732
form))))
pixie/vm/stdlib.py
@@ -687,7 +687,8 @@ def set_macro(f):
687
688
@returns(bool)
689
@as_var("macro?")
690
-def macro_QMARK_(f):
+def macro_QMARK_(v):
691
+ f = v.deref() if isinstance(v, Var) else v
692
return true if isinstance(f, BaseCode) and f.is_macro() else false
693
694
@returns(unicode)
0 commit comments