summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--opencl/source/opencl_device.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/opencl/source/opencl_device.cxx b/opencl/source/opencl_device.cxx
index 9dc0130d6bad..fed84cfdf0c6 100644
--- a/opencl/source/opencl_device.cxx
+++ b/opencl/source/opencl_device.cxx
@@ -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;