| 25 | // Macro-like function to convert an non-referenced object to the external API reference |
| 26 | template <typename T> |
| 27 | static auto* API_OBJECT_STATIC(T* obj) |
| 28 | { |
| 29 | if (obj == nullptr) |
| 30 | return nullptr; |
| 31 | return obj->GetAPIObject(); |
| 32 | } |
| 33 | |
| 34 | template <typename T> |
| 35 | static auto* API_OBJECT_STATIC(const BinaryNinja::Ref<T>& obj) |
no test coverage detected