Basic constructor macro for transunit structures.
(make-transunit [:decls <decls>])
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 '((:decls)) 'make-transunit nil))
Function:
(defun transunit (decls) (declare (xargs :guard (extdecl-listp decls))) (declare (xargs :guard t)) (let ((__function__ 'transunit)) (declare (ignorable __function__)) (b* ((decls (mbe :logic (extdecl-list-fix decls) :exec decls))) (list (cons 'decls decls)))))