VirtualBox

Changeset 10785 in vbox for trunk


Ignore:
Timestamp:
Jul 21, 2008 3:11:34 PM (16 years ago)
Author:
vboxsync
Message:

Fixed broken AssertCompileMemberOffset macro.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/assert.h

    r9367 r10785  
    231231# if __GNUC__ >= 4
    232232#  define AssertCompileMemberOffset(type, member, off) \
    233     AssertCompile(!(__builtin_offsetof(type, member) == (off)))
     233    AssertCompile(__builtin_offsetof(type, member) == (off))
    234234# else
    235235#  define AssertCompileMemberOffset(type, member, off) \
    236     AssertCompile(!(RT_OFFSETOF(type, member) == (off)))
     236    AssertCompile(RT_OFFSETOF(type, member) == (off))
    237237# endif
    238238#else
    239239# define AssertCompileMemberOffset(type, member, off) \
    240     AssertCompile(!(RT_OFFSETOF(type, member) & (off)))
     240    AssertCompile(RT_OFFSETOF(type, member) == (off))
    241241#endif
    242242
Note: See TracChangeset for help on using the changeset viewer.

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