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