zoukankan      html  css  js  c++  java
  • WINCE RETAILMSG

    RETAILMSG

    This macro conditionally outputs a printf-style formatted message.

    RETAILMSG (
    Expression,
    Message
    )
    Parameters
    Expression
    Boolean expression used to determine if the message would be output.
    Message
    Expression to be printed using printf format style.

    Return Values

    None.

    Remarks

    Theprintf-style message parameter is output if the Boolean input expression evaluates to TRUE. Note that the parameter Message must be enclosed by parentheses to prevent syntax errors being generated by the preprocessor. This macro should be used sparingly, as it increases the size of retail builds.

    Example
    代码
    RETAILMSG(TRUE, (TEXT("Testing item count against maximum %u\r\n"),
    dwMaxNumberOfItems));
    RETAILMSG(dwCurrentNumberOfItems
    >= dwMaxNumberOfItems,
    (TEXT(
    "Invalid item count! Found %u, expected less than %u\r\n"),
    dwCurrentNumberOfItems, dwMaxNumberOfItems));
    Output
    Testing item count against maximum 68
    Invalid item count
    ! Found 343, expected less than 68

    Requirements

    OS Versions: Windows CE OS 2.10 and later
    Header: Dbgapi.h
    Link Library: none

  • 相关阅读:
    (JS/JQ)与Ajax
    JS与JQ的DOM处理
    正则表达式
    JS事件大全
    CSS(初级)学习笔记
    HTML学习笔记
    leetcode记录——65. 有效数字
    dp专题
    Hackerrank---A stones game
    组合博弈问题
  • 原文地址:https://www.cnblogs.com/sunleecn/p/1734103.html
Copyright © 2011-2022 走看看