VirtualBox

Changeset 60134 in vbox for trunk/include


Ignore:
Timestamp:
Mar 22, 2016 9:50:50 AM (9 years ago)
Author:
vboxsync
Message:

iprt/asmdefs.mac: AssertCompileSizeAlignment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asmdefs.mac

    r58750 r60134  
    933933
    934934;;
     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;;
    935949; Structure memember offset assertion macro.
    936950%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.

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