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