Kaydet (Commit) d4a5e6b4 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Turn macro into function

Change-Id: I6df7a287da74e49857e7fa3f0ba1cf67ab3bc74a
üst a425d31b
......@@ -40,16 +40,17 @@
#define STRINGIFY(...) #__VA_ARGS__"\n"
#define DS_CHECK_STATUS(status, name) \
if (CL_SUCCESS != status) \
{ \
SAL_INFO("opencl.device", "Error code is " << status << " at " name); \
}
namespace opencl {
namespace {
void DS_CHECK_STATUS(cl_int status, char const * name) {
if (CL_SUCCESS != status)
{
SAL_INFO("opencl.device", "Error code is " << status << " at " << name);
}
}
bool bIsDeviceSelected = false;
ds_device selectedDevice;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment