From c687d10681cb4455e27dceec68aa5379305ec76c Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 7 Jun 2021 10:03:25 -0700 Subject: factor out LAMBDA-IGNORING-ARGS Signed-off-by: Sean Whitton --- src/util.lisp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/util.lisp') 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 -- cgit v1.2.3