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