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

Function __hxcpp_unsafe_set

include/hx/Operators.h:389–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387
388template<typename VALUE>
389inline 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
402namespace hx
403{

Callers

nothing calls this directly

Calls 2

IsInterfacePtrFunction · 0.85
ThrowFunction · 0.85

Tested by

no test coverage detected