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