diff options
Diffstat (limited to 'src/host.lisp')
-rw-r--r-- | src/host.lisp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/host.lisp b/src/host.lisp index 1eae634..b58c023 100644 --- a/src/host.lisp +++ b/src/host.lisp @@ -48,6 +48,14 @@ :hostattrs (copy-list (hostattrs host)) :propspec (host-propspec host))) +(defmacro with-preserve-hostattrs (&body forms) + "Evaluate FORMS then throw away any newly added hostattrs. +Useful in property combinators when you need to run some :HOSTATTRS +subroutines but ignore any new hostattrs they may push. Shouldn't be used in +properties." + `(let ((*host* (shallow-copy-host *host*))) + ,@forms)) + (defgeneric preprocess-host (host) (:documentation "Convert a host into a fresh preprocessed host if necessary, and |