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