diff options
Diffstat (limited to 'src/util.lisp')
-rw-r--r-- | src/util.lisp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.lisp b/src/util.lisp index fb11fec..9dd417d 100644 --- a/src/util.lisp +++ b/src/util.lisp @@ -252,6 +252,13 @@ expansion as a starting point for your own DEFPACKAGE form for your consfig." ;; (push '(:use '#:cl '#:consfigurator) forms)) `(defpackage ,name ,@forms))) +(defmacro lambda-ignoring-args (&body body) + (multiple-value-bind (forms declarations) (parse-body body) + (with-gensyms (ignore) + `(lambda (&rest ,ignore) + (declare (ignore ,ignore) ,@declarations) + ,@forms)))) + ;;;; Progress & debug printing |