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