CV_Assert的含义
2015-06-05 14:49
387 查看
Checks a condition at runtime and throws exception if it fails
C++:CV_Assert(expr
None)
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,则返回一个错误信息。
C++:CV_Assert(expr
None)
Parameters: | expr – Expression for check. |
---|
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,则返回一个错误信息。
相关文章推荐
- IOS开发---视频录制
- oracle导入导出
- oracle 创建或重建索引时收集统计信息不自动收集(_optimizer_compute_index_stats)
- squid介绍
- iOS网络监测如何区分2、3、4G?
- dup和dup2函数的不同和使用
- 高性能缓存服务器Squid架构配置
- 日志、Toast、网络、像素单位转换、屏幕、App相关、键盘、文件上传下载、加密、时间等工具类
- aix学习笔记
- Flex读取XML文件的两种方法
- 在Flex中用Validator检测数字、字符串、Email、电话号码等 .
- 23种设计模式全解析
- CAS协议
- fastjson解析中的javaBean
- 海量数据面试题----分而治之/hash映射 + hash统计 + 堆/快速/归并排序
- Spring Security 2.0.5 学习笔记(二) - Service Method级别权限控制
- cocos2d-x 3.3 之卡牌设计 NO.4 定时器的使用(清理内存)
- Flex组件的项目渲染器(ItemRenderer)使用总结
- iOS 7 以上 新沙盒目录
- 在 jboss-5.1.0.GA中编写 会话Bean和MDB