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
| 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 |
nothing calls this directly
no test coverage detected