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