Basic constructor macro for outcome-transformation-success structures.
(make-outcome-transformation-success [:message <message>] [:toplevels <toplevels>])
This is the usual way to construct outcome-transformation-success structures. It simply conses together a structure with the specified fields.
This macro generates a new outcome-transformation-success structure from scratch. See also change-outcome-transformation-success, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-outcome-transformation-success (&rest args) (std::make-aggregate 'outcome-transformation-success args '((:message) (:toplevels)) 'make-outcome-transformation-success nil))
Function:
(defun outcome-transformation-success (message toplevels) (declare (xargs :guard (and (stringp message) (toplevel-listp toplevels)))) (declare (xargs :guard t)) (let ((__function__ 'outcome-transformation-success)) (declare (ignorable __function__)) (b* ((message (mbe :logic (str-fix message) :exec message)) (toplevels (mbe :logic (toplevel-list-fix toplevels) :exec toplevels))) (cons :transformation-success (list message toplevels)))))