Simplify hsx macro

This commit is contained in:
paku 2024-06-01 07:22:01 +09:00
parent 813ca38857
commit d7a2f391f0

View file

@ -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)