zoukankan      html  css  js  c++  java
  • CV_Assert

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

  • 相关阅读:
    Unit of Work
    Layered Supertype
    Domain Model
    ASP.Net设计模式读书笔记
    VS2010无法使用nuget安装第三方包的问题
    数据库对象命名
    sql50题
    RESTFul API
    EasyUI日历控件
    ASP.NET MVC 防止前端点击劫持
  • 原文地址:https://www.cnblogs.com/pkjplayer/p/6550041.html
Copyright © 2011-2022 走看看