VirtualBox

Changeset 58587 in vbox


Ignore:
Timestamp:
Nov 5, 2015 3:44:39 PM (9 years ago)
Author:
vboxsync
Message:

iprt/asmdefs.h: nasm fixes.

File:
1 edited

Legend:

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

    r56291 r58587  
    251251;;
    252252; Global marker which is DECLASM() compatible.
    253 %macro GLOBALNAME 1,
     253%macro GLOBALNAME 1
    254254%ifndef ASM_FORMAT_BIN
    255255global NAME(%1)
     
    260260;;
    261261; Global exported marker which is DECLASM() compatible.
    262 %macro EXPORTEDNAME 1,
     262%macro EXPORTEDNAME 1
    263263 %ifdef ASM_FORMAT_PE
    264264  export %1=NAME(%1)
     
    274274;;
    275275; Global marker which is DECLASM() compatible.
    276 %macro GLOBALNAME_EX 2,
     276%macro GLOBALNAME_EX 2
    277277%ifndef ASM_FORMAT_BIN
    278278 %ifdef ASM_FORMAT_ELF
     
    287287;;
    288288; Global exported marker which is DECLASM() compatible.
    289 %macro EXPORTEDNAME_EX 2,
     289%macro EXPORTEDNAME_EX 2
    290290 %ifdef ASM_FORMAT_PE
    291291  export %1=NAME(%1)
     
    332332GLOBALNAME_EX %1 %+ _EndProc, function hidden
    333333%ifdef ASM_FORMAT_ELF
     334 %ifndef __NASM__ ; nasm does this in the global directive.
    334335size NAME(%1)               NAME(%1 %+ _EndProc) - NAME(%1)
    335336size NAME(%1 %+ _EndProc)   0
     337 %endif
    336338%endif
    337339    db  0xCC, 0xCC, 0xCC, 0xCC
     
    898900;;
    899901; Structure size assertion macro.
    900 %define AssertCompileSize(a_Type, a_Size) AssertCompileSizeML a_Type, a_Size
    901 %macro AssertCompileSizeML 2,
     902%ifdef __NASM__
     903 %define AssertCompileSize(a_Type, a_Size) ; Not possible?
     904%else
     905 %define AssertCompileSize(a_Type, a_Size) AssertCompileSizeML a_Type, a_Size
     906%endif
     907%macro AssertCompileSizeML 2
    902908 %ifndef KBUILD_GENERATING_MAKEFILE_DEPENDENCIES
    903909  %assign AssertVar_cbActual   %1 %+ _size
     
    911917;;
    912918; Structure memember offset assertion macro.
    913 %define AssertCompileMemberOffset(a_Type, a_Member, a_off) AssertCompileMemberOffsetML a_Type, a_Member, a_off
    914 %macro AssertCompileMemberOffsetML 3,
     919%ifdef __NASM__
     920 %define AssertCompileMemberOffset(a_Type, a_Member, a_off) ; Not possible?
     921%else
     922 %define AssertCompileMemberOffset(a_Type, a_Member, a_off) AssertCompileMemberOffsetML a_Type, a_Member, a_off
     923%endif
     924%macro AssertCompileMemberOffsetML 3
    915925 %ifndef KBUILD_GENERATING_MAKEFILE_DEPENDENCIES
    916926  %assign AssertVar_offActual   %1 %+ . %+ %2
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