VirtualBox

Changeset 8582

Show
Ignore:
Timestamp:
05/05/08 15:59:36 (8 months ago)
Author:
vboxsync
Message:

AssertMsgFailedBreakVoid? -> AssertMsgFailedBreak?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/iprt/assert.h

    r8581 r8582  
    607607 
    608608 
     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 
    609629/** @def AssertMsgFailedBreakStmt 
    610630 * An assertion failed, hit breakpoint (RT_STRICT mode only), execute 
     
    629649        break; \ 
    630650    } else do {} while (0) 
    631 #endif 
    632  
    633 /** @def AssertMsgFailedBreakVoid 
    634  * 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 broken 
    639  */ 
    640 #ifdef RT_STRICT 
    641 # 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 #else 
    649 # define AssertMsgFailedBreakVoid(a)  \ 
    650     if (1) \ 
    651         break; \ 
    652     else do {} while (0) 
    653651#endif 
    654652 
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r8581 r8582  
    988988            } 
    989989 
    990             AssertMsgFailedBreakVoid (("Invalid channel %d\n", aChannel)); 
     990            AssertMsgFailedBreak (("Invalid channel %d\n", aChannel)); 
    991991        } 
    992992        case KStorageBus_SATA: 
     
    10321032            } 
    10331033 
    1034             AssertMsgFailedBreakVoid (("Invalid channel {%s}\n", aChannel.latin1())); 
     1034            AssertMsgFailedBreak (("Invalid channel {%s}\n", aChannel.latin1())); 
    10351035            break; 
    10361036        } 
     
    10641064            } 
    10651065 
    1066             AssertMsgFailedBreakVoid (("Invalid device %d\n", aDevice)); 
     1066            AssertMsgFailedBreak (("Invalid device %d\n", aDevice)); 
    10671067        } 
    10681068        case KStorageBus_SATA: 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy