VirtualBox

Changeset 13931 in vbox


Ignore:
Timestamp:
Nov 6, 2008 6:51:48 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38954
Message:

iprt/assert.h: Added AssertGCPtr32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette