| 8 | |
| 9 | template<typename T> |
| 10 | inline 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 | |
| 18 | template<typename T> |
| 19 | inline T interface_check(T inObj,int interfaceId) |
nothing calls this directly
no test coverage detected