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