Function: compiled-function-p

compiled-function-p is a byte-compiled function defined in compat-29.el.

Signature

(compiled-function-p OBJECT)

Documentation

[Compatibility function for compiled-function-p, defined in Emacs 29.1. See
(compat) Emacs 29.1' for more details.]

Return non-nil if OBJECT is a function that has been compiled. Does not distinguish between functions implemented in machine code or byte-code.

Source Code

;; Defined in ~/.emacs.d/elpa/compat-30.1.0.1/compat-29.el
(compat-defalias string-split split-string) ;; <compat-tests:string-split>

(compat-defun compiled-function-p (object) ;; <compat-tests:compiled-function-p>
  "Return non-nil if OBJECT is a function that has been compiled.
Does not distinguish between functions implemented in machine code
or byte-code."
  (or (subrp object) (byte-code-function-p object)))