Function: compiled-function-p

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

Signature

(compiled-function-p OBJECT)

Documentation

Return non-nil if OBJECT is a function that has been compiled.

Does not distinguish between functions implemented in machine code or byte-code.

View in manual

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun compiled-function-p (object)
  "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)))