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

Method Variant

include/cpp/Variant.h:258–258  ·  view source on GitHub ↗

Variant type neither adds nor releases references counts while holding the value as an id on the stack The Dynamic created here owns the id, and we refer to the Dynamic and use his reference count to keep the id alive

Source from the content-addressed store, hash-verified

256 // Variant type neither adds nor releases references counts while holding the value as an id on the stack
257 // The Dynamic created here owns the id, and we refer to the Dynamic and use his reference count to keep the id alive
258 inline Variant::Variant(const id inObjc) { type=typeObject; valObject = Dynamic(inObjc).mPtr; }
259 #ifdef OBJC_ARC
260 inline Variant::operator id () const { return type==typeObject && valObject ? (__bridge id)valObject->__GetHandle() : 0; }
261 #else

Callers

nothing calls this directly

Calls 2

CreateDynamicPointerFunction · 0.85
DynamicClass · 0.50

Tested by

no test coverage detected