Turn macro into function

Change-Id: I6df7a287da74e49857e7fa3f0ba1cf67ab3bc74a
This commit is contained in:
Stephan Bergmann
2017-05-17 11:31:51 +02:00
parent a425d31b07
commit d4a5e6b42c

View File

@@ -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;