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