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