转:http://blog.csdn.net/ding977921830/article/details/46376847

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 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,则返回一个错误信息。

最新文章

  1. Fiddler的学习
  2. session应用----登录验证小案例
  3. html5响应式设置<meta>
  4. uva 11136 - Hoax or what
  5. hackerrank【Lego Blocks】:计数类dp
  6. 数据结构与算法(c++)——双缓存队列
  7. Java 面试知识点解析(五)——网络协议篇
  8. MATLAB中“fitgmdist”的用法及其GMM聚类算法
  9. ebs 12.1.1 单节点多用户安装
  10. linux下卸载mysql(rpm)
  11. class A where T:new()是什么意思
  12. javac编译成功,用java运行class文件出现“找不到或无法加载主类” 的问题
  13. protobuf's custom-options
  14. TensorFlow学习笔记(五)图像数据处理
  15. inux php pdo mysql 扩展
  16. Jquery中的ajax应用(第九章PPT)
  17. Experimental Educational Round: VolBIT Formulas Blitz C
  18. python_50_函数与函数式编程
  19. 【Java项目实战】——DRP之HTML总结
  20. wifi androd 整体框架

热门文章

  1. C# 之 集合ArrayList
  2. kubernetes高级之pod安全策略
  3. node开发后将本地mysql数据导入到服务器mysql
  4. linux 查找最后几条数据
  5. windows命令大全(转载)
  6. 开源流媒体客户端EasyClient手机端控制摄像机EasyCamera云台PTZ控制实现
  7. EasyDarwin开源流媒体服务器提供的TS切片/HLS直播打包库
  8. 在Eclipse中建立Maven Web项目
  9. Android笔记之在onCreate中执行View.getWidth()和View.getHeight()得到的结果均为0的解决方案
  10. 设置port转发来訪问Virtualbox里linux中的站点