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))
(in-package #:hsx/hsx)
(defmacro hsx (&body form)
(when (not (= (length form) 1))
(error "The body of the hsx macro must be a single form."))
(find-builtin-symbols (car form)))
(defmacro hsx (form)
(find-builtin-symbols form))
(defun find-builtin-symbols (node)
(if (atom node)