From 02692f9ac00adafdc15c204a0171c5bd8857336a Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Sat, 1 Feb 2014 22:43:41 +0400 Subject: [PATCH] fix MACRO --- modules/core/include/opencv2/core/opencl/ocl_defs.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/opencl/ocl_defs.hpp b/modules/core/include/opencv2/core/opencl/ocl_defs.hpp index 55abd7cd89..76d4f84365 100644 --- a/modules/core/include/opencv2/core/opencl/ocl_defs.hpp +++ b/modules/core/include/opencv2/core/opencl/ocl_defs.hpp @@ -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