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