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