Basic constructor macro for const-enum structures.
(make-const-enum [:get <get>])
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 '((:get)) 'make-const-enum nil))
Function:
(defun const-enum (get) (declare (xargs :guard (identp get))) (declare (xargs :guard t)) (let ((__function__ 'const-enum)) (declare (ignorable __function__)) (b* ((get (mbe :logic (ident-fix get) :exec get))) (cons :enum (list get)))))