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