Function: macroexp-compiling-p

macroexp-compiling-p is a byte-compiled function defined in macroexp.el.gz.

Signature

(macroexp-compiling-p)

Documentation

Return non-nil if we're macroexpanding for the compiler.

Probably introduced at or before Emacs version 28.1.

Aliases

cl--compiling-file (obsolete since 28.1)

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/macroexp.el.gz
(defun macroexp-compiling-p ()
  "Return non-nil if we're macroexpanding for the compiler."
  ;; FIXME: ¡¡Major Ugly Hack!! To determine whether the output of this
  ;; macro-expansion will be processed by the byte-compiler, we check
  ;; circumstantial evidence.
  (member '(declare-function . byte-compile-macroexpand-declare-function)
          macroexpand-all-environment))