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