Changeset 60134 in vbox for trunk/include
- Timestamp:
- Mar 22, 2016 9:50:50 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asmdefs.mac
r58750 r60134 933 933 934 934 ;; 935 ; Structure size alignment assertion macro. 936 937 %define AssertCompileSizeAlignment(a_Type, a_Align) AssertCompileSizeAlignmentML a_Type, a_Align 938 %macro AssertCompileSizeAlignmentML 2 939 %ifndef KBUILD_GENERATING_MAKEFILE_DEPENDENCIES 940 %assign AssertVar_cbActual %1 %+ _size 941 %assign AssertVar_cbAlignment %2 942 %if (AssertVar_cbActual & (AssertVar_cbAlignment - 1)) != 0 943 %error %1 is AssertVar_cbActual bytes, expected size with AssertVar_cbAlignment bytes alignment. 944 %endif 945 %endif 946 %endmacro 947 948 ;; 935 949 ; Structure memember offset assertion macro. 936 950 %define AssertCompileMemberOffset(a_Type, a_Member, a_off) AssertCompileMemberOffsetML a_Type, a_Member, a_off
Note:
See TracChangeset
for help on using the changeset viewer.