Changeset 8566
- Timestamp:
- 05/05/08 14:04:23 (8 months ago)
- Files:
-
- trunk/include/iprt/assert.h (modified) (5 diffs)
- trunk/src/VBox/Main/HostImpl.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/include/iprt/assert.h
r8565 r8566 519 519 520 520 521 /** @def AssertFailedBreak 521 /** @def AssertFailedBreakStmt 522 522 * An assertion failed, hit breakpoint (RT_STRICT mode only), execute 523 523 * the given statement and break. 524 524 * 525 525 * @param stmt Statement to execute before break. 526 * @todo Rename to AssertFailedBreakStmt. 527 */ 528 #ifdef RT_STRICT 529 # define AssertFailedBreak(stmt) \ 526 */ 527 #ifdef RT_STRICT 528 # define AssertFailedBreakStmt(stmt) \ 530 529 if (1) { \ 531 530 AssertMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \ … … 535 534 } else do {} while (0) 536 535 #else 537 # define AssertFailedBreak (stmt) \536 # define AssertFailedBreakStmt(stmt) \ 538 537 if (1) { \ 539 538 stmt; \ … … 619 618 620 619 621 /** @def AssertMsgFailedBreak 620 /** @def AssertMsgFailedBreakStmt 622 621 * An assertion failed, hit breakpoint (RT_STRICT mode only), execute 623 622 * the given statement and break. … … 625 624 * @param a printf argument list (in parenthesis). 626 625 * @param stmt Statement to execute before break. 627 * @todo Rename to AssertMsgFailedBreakStmt. 628 */ 629 #ifdef RT_STRICT 630 # define AssertMsgFailedBreak(a, stmt) \ 626 */ 627 #ifdef RT_STRICT 628 # define AssertMsgFailedBreakStmt(a, stmt) \ 631 629 if (1) { \ 632 630 AssertMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \ … … 637 635 } else do {} while (0) 638 636 #else 639 # define AssertMsgFailedBreak (a, stmt) \637 # define AssertMsgFailedBreakStmt(a, stmt) \ 640 638 if (1) { \ 641 639 stmt; \ trunk/src/VBox/Main/HostImpl.cpp
r8547 r8566 3071 3071 } 3072 3072 default: 3073 AssertMsgFailedBreak ((3074 "Invalid message code %d (%08lX)\n", aMsgCode, aMsgCode),3073 AssertMsgFailedBreakStmt ( 3074 ("Invalid message code %d (%08lX)\n", aMsgCode, aMsgCode), 3075 3075 VERR_GENERAL_FAILURE); 3076 3076 }

