| 387 | |
| 388 | template<typename VALUE> |
| 389 | inline void __hxcpp_unsafe_set(hx::ObjectPtr<VALUE> &outForced, const Dynamic &inD) |
| 390 | { |
| 391 | if (hx::IsInterfacePtr(outForced.mPtr)) |
| 392 | { |
| 393 | hx::Throw(HX_CSTRING("unsafe set of interfaces not supported yet.")); |
| 394 | outForced.mPtr = (VALUE *)(inD.mPtr); |
| 395 | } |
| 396 | else |
| 397 | { |
| 398 | outForced.mPtr = (VALUE *)(inD.mPtr); |
| 399 | } |
| 400 | } |
| 401 | |
| 402 | namespace hx |
| 403 | { |
nothing calls this directly
no test coverage detected