mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
ocl: drop CV_OclDbgAssert
This commit is contained in:
parent
8fb48c09f7
commit
9c4f0a984f
@ -105,9 +105,7 @@
|
||||
|
||||
namespace cv { namespace ocl {
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define CV_OclDbgAssert CV_DbgAssert
|
||||
#else
|
||||
#ifndef _DEBUG
|
||||
static bool isRaiseError()
|
||||
{
|
||||
static bool initialized = false;
|
||||
@ -119,7 +117,6 @@ static bool isRaiseError()
|
||||
}
|
||||
return value;
|
||||
}
|
||||
#define CV_OclDbgAssert(expr) do { if (isRaiseError()) { CV_Assert(expr); } else { (void)(expr); } } while ((void)0, 0)
|
||||
#endif
|
||||
|
||||
#if CV_OPENCL_TRACE_CHECK
|
||||
@ -2717,7 +2714,7 @@ struct Program::Impl
|
||||
|
||||
handle = clCreateProgramWithSource((cl_context)ctx.ptr(), 1, &srcptr, &srclen, &retval);
|
||||
CV_OCL_DBG_CHECK_RESULT(retval, "clCreateProgramWithSource");
|
||||
CV_OclDbgAssert(handle && retval == CL_SUCCESS);
|
||||
CV_Assert(handle || retval != CL_SUCCESS);
|
||||
if (handle && retval == CL_SUCCESS)
|
||||
{
|
||||
int i, n = (int)ctx.ndevices();
|
||||
|
Loading…
Reference in New Issue
Block a user