CV_Assert的含义

Checks a condition at runtime and throws exception if it fails

C++:CV_Assert(expr None)
Parameters:
  • expr – Expression for check.

The macros CV_Assert (and CV_DbgAssert) evaluate the specified expression. If it is 0, the macros raise an error (seeerror() ). The macroCV_Assert checks the condition in both Debug and Release configurations whileCV_DbgAssert is only retained in the Debug configuration.

翻译如下:

检查运行情况,如果出现错误,则显示错误信息。

c++: CV_Assert(exprNone)

      expr参数含义:检查的对象。

CV_Asser(和宏CV_DbgAssert)可以评估指定的表达方式。如果参数none是0,该宏返回一个错误。宏CV_Assert在Debug 和 Release模式下都可以检查运行情况,但是宏CV_DbgAssert只在Debug下可以使用。

我的理解:

CV_Assert()若括号中的表达式值为false,则返回一个错误信息。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值