Simplify hsx macro
This commit is contained in:
parent
813ca38857
commit
d7a2f391f0
1 changed files with 2 additions and 4 deletions
|
@ -3,10 +3,8 @@
|
||||||
(:export #:hsx))
|
(:export #:hsx))
|
||||||
(in-package #:hsx/hsx)
|
(in-package #:hsx/hsx)
|
||||||
|
|
||||||
(defmacro hsx (&body form)
|
(defmacro hsx (form)
|
||||||
(when (not (= (length form) 1))
|
(find-builtin-symbols form))
|
||||||
(error "The body of the hsx macro must be a single form."))
|
|
||||||
(find-builtin-symbols (car form)))
|
|
||||||
|
|
||||||
(defun find-builtin-symbols (node)
|
(defun find-builtin-symbols (node)
|
||||||
(if (atom node)
|
(if (atom node)
|
||||||
|
|
Loading…
Reference in a new issue