Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
DeviceResources.cpp File Reference

Namespaces

namespace  winrt
 

Macros

#define breakOnDebug
 
#define LOG_HR(hr)   CLog::LogF(LOGERROR, "function call at line %d ends with error: %s", __LINE__, DX::GetErrorDescription(hr).c_str());
 
#define CHECK_ERR()   if (FAILED(hr)) { LOG_HR(hr); breakOnDebug; return; }
 
#define RETURN_ERR(ret)   if (FAILED(hr)) { LOG_HR(hr); breakOnDebug; return (##ret); }
 

Macro Definition Documentation

◆ breakOnDebug

#define breakOnDebug

◆ CHECK_ERR

#define CHECK_ERR ( )    if (FAILED(hr)) { LOG_HR(hr); breakOnDebug; return; }

◆ LOG_HR

#define LOG_HR (   hr)    CLog::LogF(LOGERROR, "function call at line %d ends with error: %s", __LINE__, DX::GetErrorDescription(hr).c_str());

◆ RETURN_ERR

#define RETURN_ERR (   ret)    if (FAILED(hr)) { LOG_HR(hr); breakOnDebug; return (##ret); }