From 3afa963814dea47c8d624bac6de6d8fe06fc59c7 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 18 Mar 2021 08:29:58 -0700 Subject: gather declarations from :APPLY and :CHECK subroutines Signed-off-by: Sean Whitton --- src/util.lisp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/util.lisp') diff --git a/src/util.lisp b/src/util.lisp index 903c330..2d35e0c 100644 --- a/src/util.lisp +++ b/src/util.lisp @@ -79,6 +79,11 @@ supported." ,@(and docstring `(,docstring)) (error ',name :format-control message :format-arguments args)))) +(defun strip-declarations (forms) + (loop while (and (listp (car forms)) (eq 'declare (caar forms))) + do (pop forms) + finally (return forms))) + ;;;; Version numbers -- cgit v1.2.3