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