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