Skip to content

Commit 94d6079

Browse files
committed
deref macro? arg if it's a var
1 parent 36ce07e commit 94d6079

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pixie/vm/stdlib.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,8 @@ def set_macro(f):
687687

688688
@returns(bool)
689689
@as_var("macro?")
690-
def macro_QMARK_(f):
690+
def macro_QMARK_(v):
691+
f = v.deref() if isinstance(v, Var) else v
691692
return true if isinstance(f, BaseCode) and f.is_macro() else false
692693

693694
@returns(unicode)

0 commit comments

Comments
 (0)