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