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