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