VirtualBox

Changeset 8566

Show
Ignore:
Timestamp:
05/05/08 14:04:23 (8 months ago)
Author:
vboxsync
Message:

AssertMsgFailedBreak? -> AssertMsgFailedBreakStmt?; AssertFailedBreak? -> AssertFailedBreak?.

Files:

Legend:

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

    r8565 r8566  
    519519 
    520520 
    521 /** @def AssertFailedBreak 
     521/** @def AssertFailedBreakStmt 
    522522 * An assertion failed, hit breakpoint (RT_STRICT mode only), execute 
    523523 * the given statement and break. 
    524524 * 
    525525 * @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) \ 
    530529    if (1) { \ 
    531530        AssertMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \ 
     
    535534    } else do {} while (0) 
    536535#else 
    537 # define AssertFailedBreak(stmt) \ 
     536# define AssertFailedBreakStmt(stmt) \ 
    538537    if (1) { \ 
    539538        stmt; \ 
     
    619618 
    620619 
    621 /** @def AssertMsgFailedBreak 
     620/** @def AssertMsgFailedBreakStmt 
    622621 * An assertion failed, hit breakpoint (RT_STRICT mode only), execute 
    623622 * the given statement and break. 
     
    625624 * @param   a       printf argument list (in parenthesis). 
    626625 * @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) \ 
    631629    if (1) { \ 
    632630        AssertMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \ 
     
    637635    } else do {} while (0) 
    638636#else 
    639 # define AssertMsgFailedBreak(a, stmt) \ 
     637# define AssertMsgFailedBreakStmt(a, stmt) \ 
    640638    if (1) { \ 
    641639        stmt; \ 
  • trunk/src/VBox/Main/HostImpl.cpp

    r8547 r8566  
    30713071        } 
    30723072        default: 
    3073             AssertMsgFailedBreak (
    3074                 "Invalid message code %d (%08lX)\n", aMsgCode, aMsgCode), 
     3073            AssertMsgFailedBreakStmt
     3074                ("Invalid message code %d (%08lX)\n", aMsgCode, aMsgCode), 
    30753075                VERR_GENERAL_FAILURE); 
    30763076    } 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy