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