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