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