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