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