VirtualBox
Show
Ignore:
Timestamp:
11/06/08 19:51:48 (2 months ago)
Author:
vboxsync
Message:

iprt/assert.h: Added AssertGCPtr32.

Files:

Legend:

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

    r13314 r13931  
    20392039#define AssertGCPhys32(GCPhys)          AssertMsg(VALID_PHYS32(GCPhys), ("%RGp\n", (RTGCPHYS)(GCPhys))) 
    20402040 
     2041/** @def AssertGCPtr32 
     2042 * Asserts that the high dword of a physical address is zero 
     2043 * 
     2044 * @param   GCPtr       The address (RTGCPTR). 
     2045 */ 
     2046#if GC_ARCH_BITS == 32 
     2047# define AssertGCPtr32(GCPtr)           do { } while (0) 
     2048#else 
     2049# define AssertGCPtr32(GCPtr)           AssertMsg(!((GCPtr) & UINT64_C(0xffffffff00000000)), ("%RGv\n", GCPtr)) 
     2050#endif 
     2051 
    20412052/** @} */ 
    20422053 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy