fix MACRO
authorIlya Lavrenov <ilya.lavrenov@itseez.com>
Sat, 1 Feb 2014 18:43:41 +0000 (22:43 +0400)
committerIlya Lavrenov <ilya.lavrenov@itseez.com>
Sat, 1 Feb 2014 18:43:41 +0000 (22:43 +0400)
modules/core/include/opencv2/core/opencl/ocl_defs.hpp

index 55abd7c..76d4f84 100644 (file)
@@ -5,6 +5,8 @@
 // Copyright (C) 2014, Advanced Micro Devices, Inc., all rights reserved.
 // Third party copyrights are property of their respective owners.
 
+#define CV_OPENCL_RUN_ASSERT
+
 #ifdef HAVE_OPENCL
 
 #ifdef CV_OPENCL_RUN_VERBOSE
@@ -28,7 +30,7 @@
         if (cv::ocl::useOpenCL() && (condition))                            \
         {                                                                   \
             CV_Assert(func);                                                \
-            return;                                                         \
+            return __VA_ARGS__;                                             \
         }                                                                   \
     }
 #else