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