VirtualBox

Changeset 8594

Show
Ignore:
Timestamp:
05/05/08 16:11:24 (8 months ago)
Author:
vboxsync
Message:

AssertPtrBreakVoid? -> AssertPtrBreak?.

Files:

Legend:

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

    r8593 r8594  
    18361836 * @remark  rc is references multiple times. 
    18371837 */ 
    1838 #define AssertFatalRC(rc)           AssertFatalMsgRC(rc, ("%Vra\n", (rc))) 
     1838#define AssertFatalRC(rc)               AssertFatalMsgRC(rc, ("%Vra\n", (rc))) 
    18391839 
    18401840/** @def AssertReleaseMsgRC 
     
    18471847 * @remark  rc is references multiple times. 
    18481848 */ 
    1849 #define AssertFatalMsgRC(rc, msg)   AssertFatalMsg(RT_SUCCESS_NP(rc), msg) 
     1849#define AssertFatalMsgRC(rc, msg)       AssertFatalMsg(RT_SUCCESS_NP(rc), msg) 
    18501850 
    18511851/** @def AssertFatalRCSuccess 
     
    18571857 * @remark  rc is references multiple times. 
    18581858 */ 
    1859 #define AssertFatalRCSuccess(rc)    AssertFatalMsg((rc) == VINF_SUCCESS, ("%Vra\n", (rc))) 
     1859#define AssertFatalRCSuccess(rc)        AssertFatalMsg((rc) == VINF_SUCCESS, ("%Vra\n", (rc))) 
    18601860 
    18611861 
     
    18651865 * @param   pv      The pointer. 
    18661866 */ 
    1867 #define AssertPtr(pv)               AssertMsg(VALID_PTR(pv), ("%p\n", (pv))) 
     1867#define AssertPtr(pv)                   AssertMsg(VALID_PTR(pv), ("%p\n", (pv))) 
    18681868 
    18691869/** @def AssertPtrReturn 
     
    18731873 * @param   rcRet   What is to be presented to return. 
    18741874 */ 
    1875 #define AssertPtrReturn(pv, rcRet)  AssertMsgReturn(VALID_PTR(pv), ("%p\n", (pv)), rcRet) 
     1875#define AssertPtrReturn(pv, rcRet)      AssertMsgReturn(VALID_PTR(pv), ("%p\n", (pv)), rcRet) 
    18761876 
    18771877/** @def AssertPtrReturnVoid 
     
    18801880 * @param   pv      The pointer. 
    18811881 */ 
    1882 #define AssertPtrReturnVoid(pv)     AssertMsgReturnVoid(VALID_PTR(pv), ("%p\n", (pv))) 
     1882#define AssertPtrReturnVoid(pv)         AssertMsgReturnVoid(VALID_PTR(pv), ("%p\n", (pv))) 
    18831883 
    18841884/** @def AssertPtrBreakStmt 
     
    18901890#define AssertPtrBreakStmt(pv, stmt)    AssertMsgBreakStmt(VALID_PTR(pv), ("%p\n", (pv)), stmt) 
    18911891 
    1892 /** @def AssertPtrBreakVoid 
     1892/** @def AssertPtrBreak 
    18931893 * Asserts that a pointer is valid. 
    18941894 * 
    18951895 * @param   pv      The pointer. 
    1896  * @todo Rename to AssertPtrBreak. 
    1897  */ 
    1898 #define AssertPtrBreakVoid(pv)  AssertMsgBreak(VALID_PTR(pv), ("%p\n", (pv))) 
     1896 */ 
     1897#define AssertPtrBreak(pv)              AssertMsgBreak(VALID_PTR(pv), ("%p\n", (pv))) 
    18991898 
    19001899/** @def AssertPtrNull 
     
    19181917 * @param   pv      The pointer. 
    19191918 */ 
    1920 #define AssertPtrNullReturnVoid(pv)  AssertMsgReturnVoid(VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv))) 
     1919#define AssertPtrNullReturnVoid(pv)     AssertMsgReturnVoid(VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv))) 
    19211920 
    19221921/** @def AssertPtrNullBreakStmt 
  • trunk/src/VBox/Devices/Storage/VBoxHDD-new.cpp

    r8569 r8594  
    821821    { 
    822822        /* sanity check */ 
    823         AssertPtrBreakVoid(pDisk); 
     823        AssertPtrBreak(pDisk); 
    824824        AssertMsg(pDisk->u32Signature == VBOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 
    825825        VDCloseAll(pDisk); 
     
    32553255    { 
    32563256        /* sanity check */ 
    3257         AssertPtrBreakVoid(pDisk); 
     3257        AssertPtrBreak(pDisk); 
    32583258        AssertMsg(pDisk->u32Signature == VBOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 
    32593259 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy