CV_DbgAssert on linux is NO-OPd even when I build my program in debug mode. This is because
_DEBUG is not defined in my build with GCC on linux. Who is expected to define
_DEBUG? My program links to OpenCV using CMake and CMake or
OpenCVConfig.cmake does not seem to define
MSVC seems to define
I appreciate if someone can point me in the right direction.
#if defined _DEBUG || defined CV_STATIC_ANALYSIS # define CV_DbgAssert(expr) CV_Assert(expr) #else /** replaced with CV_Assert(expr) in Debug configuration */ # define CV_DbgAssert(expr) #endif