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

Function interface_cast

include/hx/Interface.h:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9template<typename T>
10inline T interface_cast(void *ptr)
11{
12 #if defined(HXCPP_GC_CHECK_POINTER) || defined(HXCPP_DEBUG)
13 if (!ptr) hx::InvalidInterface();
14 #endif
15 return static_cast<T>(ptr);
16}
17
18template<typename T>
19inline T interface_check(T inObj,int interfaceId)

Callers

nothing calls this directly

Calls 1

InvalidInterfaceFunction · 0.85

Tested by

no test coverage detected