summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-17 11:31:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-17 11:31:51 +0200
commitd4a5e6b42c4bef40aa5411dbb49bca364a4846b7 (patch)
treed645326983d08aab2f4902811c5561aa37a83678 /opencl
parenta425d31b07c54aab4d7d57dfaecebc17f39b6b12 (diff)
Turn macro into function
Change-Id: I6df7a287da74e49857e7fa3f0ba1cf67ab3bc74a
Diffstat (limited to 'opencl')
-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;