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