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.
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."
(declare (side-effect-free error-free))
(or (and (subrp object) (not (eq 'unevalled (cdr (subr-arity object)))))
(byte-code-function-p object)))