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