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