* lisp/emacs-lisp/cl-macs.el (cl-typep): Add docstring.

This commit is contained in:
Andrea Corallo 2024-04-10 15:27:46 +02:00
parent f2f13fa630
commit f471181129

View file

@ -3479,6 +3479,7 @@ Of course, we really can't know that for sure, so it's just a heuristic."
;;;###autoload
(define-inline cl-typep (val type)
"Return t if VAL is of type TYPE, nil otherwise."
(inline-letevals (val)
(pcase (inline-const-val type)
((and `(,name . ,args) (guard (get name 'cl-deftype-handler)))