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