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