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