diff options
Diffstat (limited to 'src/util.lisp')
-rw-r--r-- | src/util.lisp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util.lisp b/src/util.lisp index 7ee7e1a..f07e90e 100644 --- a/src/util.lisp +++ b/src/util.lisp @@ -116,7 +116,9 @@ supported." (error ',name :format-control message :format-arguments args)))) (defmacro form-beginning-with (sym form) - `(and (listp ,form) (eq ',sym (car ,form)))) + `(and (listp ,form) + (symbolp (car ,form)) + (string= (symbol-name (car ,form)) ,(symbol-name sym)))) (defun strip-declarations (forms) (loop while (form-beginning-with declare (car forms)) |