VirtualBox

儲存庫 vbox 的更動 18575


忽略:
時間撮記:
2009-3-31 下午02:14:55 (16 年 以前)
作者:
vboxsync
訊息:

Correct typos.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/include/iprt/assert.h

    r18050 r18575  
    3838 * @ingroup grp_rt
    3939 *
    40  * Assertions are generally used to check precoditions and other
     40 * Assertions are generally used to check preconditions and other
    4141 * assumptions. Sometimes it is also used to catch odd errors or errors
    4242 * that one would like to inspect in the debugger. They should not be
     
    5757 *      - ReturnVoid    - Return (void) on failure.
    5858 *      - Break         - Break (out of switch/loop) on failure.
    59  *      - Stmt          - Execute the specified statment(s) on failure.
     59 *      - Stmt          - Execute the specified statement(s) on failure.
    6060 *      - RC            - Assert RT_SUCCESS.
    6161 *      - RCSuccess     - Assert VINF_SUCCESS.
    6262 *
    63  * In additions there is a very special familiy AssertCompile that can be
    64  * used for some limited compile checking. Like structure sizes and member
     63 * In addition there is a very special family AssertCompile that can be
     64 * used for some limited compile-time checking, like structure sizes and member
    6565 * alignment. This family doesn't have the same variations.
    6666 *
    6767 *
    68  * @remarks As you might've noticed, the macros doesn't follow the
     68 * @remarks As you might have noticed, the macros don't follow the
    6969 * coding guidelines wrt to macros supposedly being all uppercase
    70  * and  underscored. For various  reasons they don't, and it nobody
     70 * and underscored. For various  reasons they don't, and nobody
    7171 * has complained yet. Wonder why... :-)
    7272 *
     
    134134 *
    135135 * @remark  The RTDECL() makes this a bit difficult to override on Windows. So,
    136  *          you'll have ot use RTASSERT_HAVE_SHOULD_PANIC or
     136 *          you'll have to use RTASSERT_HAVE_SHOULD_PANIC or
    137137 *          RTASSERT_HAVE_SHOULD_PANIC_PRIVATE there to control the kind of
    138138 *          prototype.
     
    190190/** @name Compile time assertions.
    191191 *
    192  * These assertions are used to check structure sizes, memember/size alignments
     192 * These assertions are used to check structure sizes, member/size alignments
    193193 * and similar compile time expressions.
    194194 *
     
    305305 *
    306306 * These assertions will only trigger when RT_STRICT is defined. When it is
    307  * undefined they will all be noops and generate no code.
     307 * undefined they will all be no-ops and generate no code.
    308308 *
    309309 * @{
     
    389389 * and return rc.
    390390 *
    391  * In RT_STRICT mode it will hit a breakpoint before executing the statment and
     391 * In RT_STRICT mode it will hit a breakpoint before executing the statement and
    392392 * returning.
    393393 *
     
    953953 * defined and LogRel statements when RT_STRICT is undefined. Typically used for
    954954 * things which shouldn't go wrong, but when it does you'd like to know one way
    955  * or ther other.
     955 * or the other.
    956956 *
    957957 * @{
     
    12861286
    12871287
    1288 /** @name Release Asserions
     1288/** @name Release Assertions
    12891289 *
    12901290 * These assertions are always enabled.
     
    13171317
    13181318/** @def AssertReleaseReturn
    1319  * Assert that an expression is true, hit a breakpoing and return if it isn't.
     1319 * Assert that an expression is true, hit a breakpoint and return if it isn't.
    13201320 *
    13211321 * @param   expr    Expression which should be true.
     
    13331333
    13341334/** @def AssertReleaseReturnVoid
    1335  * Assert that an expression is true, hit a breakpoing and return if it isn't.
     1335 * Assert that an expression is true, hit a breakpoint and return if it isn't.
    13361336 *
    13371337 * @param   expr    Expression which should be true.
     
    13491349
    13501350/** @def AssertReleaseBreak
    1351  * Assert that an expression is true, hit a breakpoing and break if it isn't.
     1351 * Assert that an expression is true, hit a breakpoint and break if it isn't.
    13521352 *
    13531353 * @param   expr    Expression which should be true.
     
    13641364
    13651365/** @def AssertReleaseBreakStmt
    1366  * Assert that an expression is true, hit a breakpoing and break if it isn't.
     1366 * Assert that an expression is true, hit a breakpoint and break if it isn't.
    13671367 *
    13681368 * @param   expr    Expression which should be true.
     
    14471447
    14481448/** @def AssertReleaseMsgBreakStmt
    1449  * Assert that an expression is true, print the message and hit a breakpoing and break if it isn't.
     1449 * Assert that an expression is true, print the message and hit a breakpoint and break if it isn't.
    14501450 *
    14511451 * @param   expr    Expression which should be true.
     
    20192019 *
    20202020 * On failure a custom message is printed, a breakpoint is hit, and finally
    2021  * returning from the function if the breakpoint is showhow ignored.
     2021 * returning from the function if the breakpoint is somehow ignored.
    20222022 *
    20232023 * @param   rc      iprt status code.
     
    20322032 *
    20332033 * On failure a custom message is printed, a breakpoint is hit, and finally
    2034  * returning from the function if the breakpoint is showhow ignored.
     2034 * returning from the function if the breakpoint is somehow ignored.
    20352035 *
    20362036 * @param   rc      iprt status code.
     
    20442044 *
    20452045 * On failure a custom message is printed, a breakpoint is hit, and finally
    2046  * breaking the current status if the breakpoint is showhow ignored.
     2046 * breaking the current status if the breakpoint is somehow ignored.
    20472047 *
    20482048 * @param   rc      iprt status code.
     
    20562056 *
    20572057 * On failure a custom message is printed, a breakpoint is hit, and finally
    2058  * the brean statement is issued if the breakpoint is showhow ignored.
     2058 * the break statement is issued if the breakpoint is somehow ignored.
    20592059 *
    20602060 * @param   rc      iprt status code.
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette