Is there a way to expand a macro using a list of arguments? I tried using apply
but then I get an error that the "function" my/x-becomes-nil
is invalid.
(defmacro my/x-becomes-nil (variable x)
`(if (eq ,variable ,x)
(setq ,variable nil)))
(let ((q 2))
(my/x-becomes-nil q 2)
;;(apply 'my/x-becomes-nil (list q 2)) ;; How to make this work?
q)
eval
.