X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/blobdiff_plain/4b8e5c0347115ff30841f1d1e71afe59ecb6c82c..7b7947024fedb0bb7a0ea3ccb0029f6060de901b:/src/module-proto.lisp diff --git a/src/module-proto.lisp b/src/module-proto.lisp index 9c7fcaf..a79069a 100644 --- a/src/module-proto.lisp +++ b/src/module-proto.lisp @@ -7,7 +7,7 @@ ;;;----- Licensing notice --------------------------------------------------- ;;; -;;; This file is part of the Sensble Object Design, an object system for C. +;;; This file is part of the Sensible Object Design, an object system for C. ;;; ;;; SOD is free software; you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as published by @@ -84,7 +84,10 @@ (defmacro define-clear-the-decks (name &body body) When `clear-the-decks' is called, the BODY will be evaluated as a progn. The relative order of `clear-the-decks' operations is unspecified." - `(add-clear-the-decks-function ',name (lambda () ,@body))) + (multiple-value-bind (docs decls body) (parse-body body) + `(add-clear-the-decks-function ',name (lambda () + ,@docs ,@decls + (block ,name ,@body))))) (export 'clear-the-decks) (defun clear-the-decks ()