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