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