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