Function: byte-compile--declare-var

byte-compile--declare-var is a byte-compiled function defined in bytecomp.el.gz.

Signature

(byte-compile--declare-var SYM &optional NOT-TOPLEVEL)

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/bytecomp.el.gz
(defun byte-compile--declare-var (sym &optional not-toplevel)
  (byte-compile--check-prefixed-var sym)
  (when (and (not not-toplevel)
             (memq sym byte-compile-lexical-variables))
    (setq byte-compile-lexical-variables
          (delq sym byte-compile-lexical-variables))
    (when (byte-compile-warning-enabled-p 'lexical sym)
      (byte-compile-warn-x sym "Variable `%S' declared after its first use" sym)))
  (push sym byte-compile-bound-variables)
  (push sym byte-compile--seen-defvars))