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