Function: bytecomp--define-negated

bytecomp--define-negated is a macro defined in bytecomp.el.gz.

Signature

(bytecomp--define-negated FN ARITY NEGFN)

Documentation

Define FN with ARITY as the Boolean negation of NEGFN.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/bytecomp.el.gz
(defmacro bytecomp--define-negated (fn arity negfn)
  "Define FN with ARITY as the Boolean negation of NEGFN."
  `(put ',fn 'compiler-macro
        (lambda (form &rest args)
          (if (= (length args) ,arity)
              (list 'not (cons ',negfn args))
            form))))