| 43 | // From refcountobject.h |
| 44 | template <typename T> |
| 45 | static auto* API_OBJECT_REF(T* obj) |
| 46 | { |
| 47 | if (obj == nullptr) |
| 48 | return (decltype(obj->m_object))nullptr; |
| 49 | obj->AddRef(); |
| 50 | return obj->m_object; |
| 51 | } |
| 52 | |
| 53 | template <typename T> |
| 54 | static auto* API_OBJECT_REF(const BinaryNinja::Ref<T>& obj) |
no test coverage detected