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