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