{
check_failed_auto_<int>(v, ctx);
}
- cv::errorNoReturn(cv::Error::StsError, ss.str(), ctx.func, ctx.file, ctx.line);
+ void check_failed_true(const bool v, const CheckContext& ctx)
+ {
+ CV_UNUSED(v);
+ std::stringstream ss;
+ ss << ctx.message << ":" << std::endl
+ << " '" << ctx.p1_str << "' must be 'true'";
- cv::errorNoReturn(cv::Error::StsError, ss.str(), ctx.func, ctx.file, ctx.line);
++ cv::error(cv::Error::StsError, ss.str(), ctx.func, ctx.file, ctx.line);
+ }
+ void check_failed_false(const bool v, const CheckContext& ctx)
+ {
+ CV_UNUSED(v);
+ std::stringstream ss;
+ ss << ctx.message << ":" << std::endl
+ << " '" << ctx.p1_str << "' must be 'false'";
++ cv::error(cv::Error::StsError, ss.str(), ctx.func, ctx.file, ctx.line);
+ }
void check_failed_auto(const int v, const CheckContext& ctx)
{
check_failed_auto_<int>(v, ctx);