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