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