Commit c577c2cc authored by Alexander Alekhin's avatar Alexander Alekhin

gapi: eliminate KW issues

parent 197285d1
......@@ -10,7 +10,8 @@
#if !defined(GAPI_STANDALONE)
#include <opencv2/core/base.hpp>
#define GAPI_Assert(expr) CV_Assert(expr)
#define GAPI_Assert CV_Assert
#define GAPI_DbgAssert CV_DbgAssert
#else
#include <stdexcept>
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment