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