| 181 | // Macro-like functions to manage referenced objects for the external API |
| 182 | template <class T> |
| 183 | static typename T::APIHandle DSC_API_OBJECT_REF(T* obj) |
| 184 | { |
| 185 | if (obj == nullptr) |
| 186 | return nullptr; |
| 187 | obj->AddAPIRef(); |
| 188 | return obj->GetAPIObject(); |
| 189 | } |
| 190 | |
| 191 | template <class T> |
| 192 | static typename T::APIHandle DSC_API_OBJECT_REF(const DSCRef<T>& obj) |
no test coverage detected