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

Function interface_check

include/hx/Interface.h:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18template<typename T>
19inline T interface_check(T inObj,int interfaceId)
20{
21 Dynamic d(inObj);
22 if ( !d.mPtr || !d->_hx_getInterface(interfaceId))
23 hx::BadCast();
24 return inObj;
25}
26
27}
28

Callers

nothing calls this directly

Calls 2

BadCastFunction · 0.85
_hx_getInterfaceMethod · 0.45

Tested by

no test coverage detected