Function: forge--childp
forge--childp is a macro defined in forge-core.el.
Signature
(forge--childp OBJ TYPE)
Documentation
Somewhat similar to cl-typep but only for (possibly unknown) classes.
TYPE is evaluated at macro-expansion time but, unlike with
cl-typep, the respective class does not have to be defined
at that time.
Source Code
;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/forge-core.el
(defmacro forge--childp (obj type)
"Somewhat similar to `cl-typep' but only for (possibly unknown) classes.
TYPE is evaluated at macro-expansion time but, unlike with
`cl-typep', the respective class does not have to be defined
at that time."
(let ((fn (intern (concat (symbol-name (eval type)) "--eieio-childp"))))
`(and (fboundp ',fn) (,fn ,obj))))