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