From: Alexander Alekhin Date: Mon, 3 Dec 2018 12:19:48 +0000 (+0300) Subject: gapi: eliminate KW issues X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1^2~390^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c577c2cc6a997710c833164e2b5a41a2a14bebe5;p=platform%2Fupstream%2Fopencv.git gapi: eliminate KW issues --- diff --git a/modules/gapi/include/opencv2/gapi/own/assert.hpp b/modules/gapi/include/opencv2/gapi/own/assert.hpp index 8d3feff..10ec240 100644 --- a/modules/gapi/include/opencv2/gapi/own/assert.hpp +++ b/modules/gapi/include/opencv2/gapi/own/assert.hpp @@ -10,7 +10,8 @@ #if !defined(GAPI_STANDALONE) #include -#define GAPI_Assert(expr) CV_Assert(expr) +#define GAPI_Assert CV_Assert +#define GAPI_DbgAssert CV_DbgAssert #else #include @@ -30,7 +31,6 @@ namespace detail #define GAPI_Assert(expr) \ { if (!(expr)) ::detail::assert_abort(#expr, __LINE__, __FILE__, __func__); } -#endif #ifdef NDEBUG # define GAPI_DbgAssert(expr) @@ -38,4 +38,6 @@ namespace detail # define GAPI_DbgAssert(expr) GAPI_Assert(expr) #endif +#endif // GAPI_STANDALONE + #endif // OPENCV_GAPI_OWN_ASSERT_HPP