- Timestamp:
- May 5, 2008 1:59:36 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/assert.h
r8581 r8582 607 607 608 608 609 /** @def AssertMsgFailedBreak 610 * An assertion failed, hit breakpoint with message (RT_STRICT mode only) and break. 611 * 612 * @param a printf argument list (in parenthesis). 613 */ 614 #ifdef RT_STRICT 615 # define AssertMsgFailedBreak(a) \ 616 if (1) { \ 617 AssertMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \ 618 AssertMsg2 a; \ 619 AssertBreakpoint(); \ 620 break; \ 621 } else do {} while (0) 622 #else 623 # define AssertMsgFailedBreak(a) \ 624 if (1) \ 625 break; \ 626 else do {} while (0) 627 #endif 628 609 629 /** @def AssertMsgFailedBreakStmt 610 630 * An assertion failed, hit breakpoint (RT_STRICT mode only), execute … … 629 649 break; \ 630 650 } else do {} while (0) 631 #endif632 633 /** @def AssertMsgFailedBreakVoid634 * An assertion failed, hit breakpoint with message (RT_STRICT mode only) and break.635 *636 * @param a printf argument list (in parenthesis).637 * @todo Rename to AssertMsgFailedBreak.638 * @todo broken639 */640 #ifdef RT_STRICT641 # define AssertMsgFailedBreakVoid(a) \642 if (1) { \643 AssertMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \644 AssertMsg2 a; \645 AssertBreakpoint(); \646 break; \647 } else do {} while (0)648 #else649 # define AssertMsgFailedBreakVoid(a) \650 if (1) \651 break; \652 else do {} while (0)653 651 #endif 654 652 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r8581 r8582 988 988 } 989 989 990 AssertMsgFailedBreak Void(("Invalid channel %d\n", aChannel));990 AssertMsgFailedBreak (("Invalid channel %d\n", aChannel)); 991 991 } 992 992 case KStorageBus_SATA: … … 1032 1032 } 1033 1033 1034 AssertMsgFailedBreak Void(("Invalid channel {%s}\n", aChannel.latin1()));1034 AssertMsgFailedBreak (("Invalid channel {%s}\n", aChannel.latin1())); 1035 1035 break; 1036 1036 } … … 1064 1064 } 1065 1065 1066 AssertMsgFailedBreak Void(("Invalid device %d\n", aDevice));1066 AssertMsgFailedBreak (("Invalid device %d\n", aDevice)); 1067 1067 } 1068 1068 case KStorageBus_SATA:
Note:
See TracChangeset
for help on using the changeset viewer.