Function: byte-compile-emit-callargs-warn

byte-compile-emit-callargs-warn is a byte-compiled function defined in bytecomp.el.gz.

Signature

(byte-compile-emit-callargs-warn NAME ACTUAL-ARGS MIN-ARGS MAX-ARGS)

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/bytecomp.el.gz
(defun byte-compile-emit-callargs-warn (name actual-args min-args max-args)
  (when (byte-compile-warning-enabled-p 'callargs name)
    (byte-compile-warn-x
     name
     "`%s' called with %d argument%s, but %s %s"
     name actual-args
     (if (= 1 actual-args) "" "s")
     (if (< actual-args min-args)
         "requires"
       "accepts only")
     (byte-compile-arglist-signature-string (cons min-args max-args)))))