- Timestamp:
- Jul 21, 2008 3:11:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/assert.h
r9367 r10785 231 231 # if __GNUC__ >= 4 232 232 # define AssertCompileMemberOffset(type, member, off) \ 233 AssertCompile( !(__builtin_offsetof(type, member) == (off)))233 AssertCompile(__builtin_offsetof(type, member) == (off)) 234 234 # else 235 235 # define AssertCompileMemberOffset(type, member, off) \ 236 AssertCompile( !(RT_OFFSETOF(type, member) == (off)))236 AssertCompile(RT_OFFSETOF(type, member) == (off)) 237 237 # endif 238 238 #else 239 239 # define AssertCompileMemberOffset(type, member, off) \ 240 AssertCompile( !(RT_OFFSETOF(type, member) & (off)))240 AssertCompile(RT_OFFSETOF(type, member) == (off)) 241 241 #endif 242 242
Note:
See TracChangeset
for help on using the changeset viewer.