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