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