(defmacro define-something (name &key has-thing) `(defmacro ,name ,(if has-thing '(thing) ()) `(let ((foo (make-foo))) ;; Here I want to include something only if HAS-THING foo)))