| 203 | // Macro-like functions to manage referenced objects for the external API |
| 204 | template <class T> |
| 205 | static typename T::APIHandle DBG_API_OBJECT_REF(T* obj) |
| 206 | { |
| 207 | if (obj == nullptr) |
| 208 | return nullptr; |
| 209 | obj->AddAPIRef(); |
| 210 | return obj->GetAPIObject(); |
| 211 | } |
| 212 | |
| 213 | template <class T> |
| 214 | static typename T::APIHandle DBG_API_OBJECT_REF(const DbgRef<T>& obj) |
no test coverage detected