儲存庫 vbox 的更動 18575
- 時間撮記:
- 2009-3-31 下午02:14:55 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/include/iprt/assert.h
r18050 r18575 38 38 * @ingroup grp_rt 39 39 * 40 * Assertions are generally used to check preco ditions and other40 * Assertions are generally used to check preconditions and other 41 41 * assumptions. Sometimes it is also used to catch odd errors or errors 42 42 * that one would like to inspect in the debugger. They should not be … … 57 57 * - ReturnVoid - Return (void) on failure. 58 58 * - Break - Break (out of switch/loop) on failure. 59 * - Stmt - Execute the specified stat ment(s) on failure.59 * - Stmt - Execute the specified statement(s) on failure. 60 60 * - RC - Assert RT_SUCCESS. 61 61 * - RCSuccess - Assert VINF_SUCCESS. 62 62 * 63 * In addition s there is a very special familiy AssertCompile that can be64 * used for some limited compile checking. Like structure sizes and member63 * 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 65 65 * alignment. This family doesn't have the same variations. 66 66 * 67 67 * 68 * @remarks As you might 've noticed, the macros doesn't follow the68 * @remarks As you might have noticed, the macros don't follow the 69 69 * coding guidelines wrt to macros supposedly being all uppercase 70 * and underscored. For various reasons they don't, and itnobody70 * and underscored. For various reasons they don't, and nobody 71 71 * has complained yet. Wonder why... :-) 72 72 * … … 134 134 * 135 135 * @remark The RTDECL() makes this a bit difficult to override on Windows. So, 136 * you'll have otuse RTASSERT_HAVE_SHOULD_PANIC or136 * you'll have to use RTASSERT_HAVE_SHOULD_PANIC or 137 137 * RTASSERT_HAVE_SHOULD_PANIC_PRIVATE there to control the kind of 138 138 * prototype. … … 190 190 /** @name Compile time assertions. 191 191 * 192 * These assertions are used to check structure sizes, mem ember/size alignments192 * These assertions are used to check structure sizes, member/size alignments 193 193 * and similar compile time expressions. 194 194 * … … 305 305 * 306 306 * These assertions will only trigger when RT_STRICT is defined. When it is 307 * undefined they will all be no ops and generate no code.307 * undefined they will all be no-ops and generate no code. 308 308 * 309 309 * @{ … … 389 389 * and return rc. 390 390 * 391 * In RT_STRICT mode it will hit a breakpoint before executing the stat ment and391 * In RT_STRICT mode it will hit a breakpoint before executing the statement and 392 392 * returning. 393 393 * … … 953 953 * defined and LogRel statements when RT_STRICT is undefined. Typically used for 954 954 * things which shouldn't go wrong, but when it does you'd like to know one way 955 * or the rother.955 * or the other. 956 956 * 957 957 * @{ … … 1286 1286 1287 1287 1288 /** @name Release Asser ions1288 /** @name Release Assertions 1289 1289 * 1290 1290 * These assertions are always enabled. … … 1317 1317 1318 1318 /** @def AssertReleaseReturn 1319 * Assert that an expression is true, hit a breakpoin gand return if it isn't.1319 * Assert that an expression is true, hit a breakpoint and return if it isn't. 1320 1320 * 1321 1321 * @param expr Expression which should be true. … … 1333 1333 1334 1334 /** @def AssertReleaseReturnVoid 1335 * Assert that an expression is true, hit a breakpoin gand return if it isn't.1335 * Assert that an expression is true, hit a breakpoint and return if it isn't. 1336 1336 * 1337 1337 * @param expr Expression which should be true. … … 1349 1349 1350 1350 /** @def AssertReleaseBreak 1351 * Assert that an expression is true, hit a breakpoin gand break if it isn't.1351 * Assert that an expression is true, hit a breakpoint and break if it isn't. 1352 1352 * 1353 1353 * @param expr Expression which should be true. … … 1364 1364 1365 1365 /** @def AssertReleaseBreakStmt 1366 * Assert that an expression is true, hit a breakpoin gand break if it isn't.1366 * Assert that an expression is true, hit a breakpoint and break if it isn't. 1367 1367 * 1368 1368 * @param expr Expression which should be true. … … 1447 1447 1448 1448 /** @def AssertReleaseMsgBreakStmt 1449 * Assert that an expression is true, print the message and hit a breakpoin gand 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. 1450 1450 * 1451 1451 * @param expr Expression which should be true. … … 2019 2019 * 2020 2020 * On failure a custom message is printed, a breakpoint is hit, and finally 2021 * returning from the function if the breakpoint is s howhow ignored.2021 * returning from the function if the breakpoint is somehow ignored. 2022 2022 * 2023 2023 * @param rc iprt status code. … … 2032 2032 * 2033 2033 * On failure a custom message is printed, a breakpoint is hit, and finally 2034 * returning from the function if the breakpoint is s howhow ignored.2034 * returning from the function if the breakpoint is somehow ignored. 2035 2035 * 2036 2036 * @param rc iprt status code. … … 2044 2044 * 2045 2045 * On failure a custom message is printed, a breakpoint is hit, and finally 2046 * breaking the current status if the breakpoint is s howhow ignored.2046 * breaking the current status if the breakpoint is somehow ignored. 2047 2047 * 2048 2048 * @param rc iprt status code. … … 2056 2056 * 2057 2057 * On failure a custom message is printed, a breakpoint is hit, and finally 2058 * the brea n statement is issued if the breakpoint is showhow ignored.2058 * the break statement is issued if the breakpoint is somehow ignored. 2059 2059 * 2060 2060 * @param rc iprt status code.
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器