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