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