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