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

Function __instanceof

src/hx/StdLibs.cpp:692–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690
691
692bool __instanceof(const Dynamic &inValue, const Dynamic &inType)
693{
694 if (inValue==null())
695 return false;
696 if (inType==hx::Object::__SGetClass())
697 return true;
698 hx::Class c = inType;
699 if (c==null())
700 return false;
701 return c->CanCast(inValue.GetPtr());
702}
703
704
705int __int__(double x)

Callers 1

isClassOfMethod · 0.85

Calls 2

GetPtrMethod · 0.80
nullClass · 0.50

Tested by

no test coverage detected