首页 > 其他 > 详细

CV_Assert的含义

时间:2015-06-05 17:43:04      阅读:413      评论:0      收藏:0      [点我收藏+]

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 (see error() ). The macro CV_Assert checks the condition in both Debug and Release configurations while CV_DbgAssert is only retained in the Debug configuration.

翻译如下:

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

c++: CV_Assert(expr None)

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

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

我的理解:

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

CV_Assert的含义

原文:http://blog.csdn.net/ding977921830/article/details/46376847

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!