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