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