MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / isClassOf

Method isClassOf

src/hx/cppia/Cppia.cpp:247–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245
246
247bool TypeData::isClassOf(Dynamic inInstance)
248{
249 if (cppiaClass)
250 return cppiaClass->getClass()->VCanCast(inInstance.mPtr);
251 else if (haxeClass.mPtr)
252 return __instanceof(inInstance,haxeClass) || isDynamic;
253
254 return false;
255}
256
257
258

Callers 4

runObjectMethod · 0.80
safeCastMethod · 0.80
handleExceptionMethod · 0.80
isExceptionCatchMethod · 0.80

Calls 3

__instanceofFunction · 0.85
VCanCastMethod · 0.80
getClassMethod · 0.80

Tested by

no test coverage detected