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