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