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