Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
DeviceResources.cpp File Reference

Namespaces

namespace  winrt
 

Macros

#define breakOnDebug
 
#define LOG_HR(hr)
 
#define CHECK_ERR()
 
#define RETURN_ERR(ret)
 

Macro Definition Documentation

◆ breakOnDebug

#define breakOnDebug

◆ CHECK_ERR

#define CHECK_ERR ( )
Value:
if (FAILED(hr)) { LOG_HR(hr); breakOnDebug; return; }
#define breakOnDebug
Definition DeviceResources.cpp:51
#define LOG_HR(hr)
Definition DeviceResources.cpp:53

◆ LOG_HR

#define LOG_HR ( hr)
Value:
CLog::LogF(LOGERROR, "function call at line {} ends with error: {}", __LINE__, \
static std::string FormatHRESULT(HRESULT hr)
Format a Windows HRESULT value into a string for logging.
Definition WIN32Util.cpp:1866
constexpr int LOGERROR
Definition ilog.h:21

◆ RETURN_ERR

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