Function: find-class
find-class is a byte-compiled function defined in eieio.el.gz.
Signature
(find-class SYMBOL &optional ERRORP)
Documentation
Return the class that SYMBOL represents.
If there is no class, nil is returned if ERRORP is nil.
If ERRORP is non-nil, wrong-type-argument is signaled.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/eieio.el.gz
(defun find-class (symbol &optional errorp)
"Return the class that SYMBOL represents.
If there is no class, nil is returned if ERRORP is nil.
If ERRORP is non-nil, `wrong-type-argument' is signaled."
(let ((class (cl--find-class symbol)))
(cond
((eieio--class-p class) class)
(errorp (signal 'wrong-type-argument (list 'class-p symbol))))))