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