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