VirtualBox

Changeset 8596

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

AssertPtrNullBreakVoid? -> AssertPtrNullBreak?.

Files:

Legend:

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

    r8595 r8596  
    19191919#define AssertPtrNullReturnVoid(pv)     AssertMsgReturnVoid(VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv))) 
    19201920 
     1921/** @def AssertPtrNullBreak 
     1922 * Asserts that a pointer is valid or NULL. 
     1923 * 
     1924 * @param   pv      The pointer. 
     1925 */ 
     1926#define AssertPtrNullBreak(pv)          AssertMsgBreak(VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv))) 
     1927 
    19211928/** @def AssertPtrNullBreakStmt 
    19221929 * Asserts that a pointer is valid or NULL. 
     
    19251932 * @param   stmt    Statement to execute before break in case of a failed assertion. 
    19261933 */ 
    1927 #define AssertPtrNullBreakStmt(pv, stmt)    AssertMsgBreakStmt(VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv)), stmt) 
    1928  
    1929 /** @def AssertPtrNullBreakVoid 
    1930  * Asserts that a pointer is valid or NULL. 
    1931  * 
    1932  * @param   pv      The pointer. 
    1933  * @todo Rename to AssertPtrNullBreak. 
    1934  */ 
    1935 #define AssertPtrNullBreakVoid(pv)  AssertMsgBreak(VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv))) 
     1934#define AssertPtrNullBreakStmt(pv, stmt) AssertMsgBreakStmt(VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv)), stmt) 
    19361935 
    19371936/** @def AssertGCPhys32 
     
    19401939 * @param   GCPhys      The address (RTGCPHYS). 
    19411940 */ 
    1942 #define AssertGCPhys32(GCPhys)      AssertMsg(VALID_PHYS32(GCPhys), ("%RGp\n", (RTGCPHYS)(GCPhys))) 
     1941#define AssertGCPhys32(GCPhys)          AssertMsg(VALID_PHYS32(GCPhys), ("%RGp\n", (RTGCPHYS)(GCPhys))) 
    19431942 
    19441943 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy