Changeset 58587 in vbox
- Timestamp:
- Nov 5, 2015 3:44:39 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asmdefs.mac
r56291 r58587 251 251 ;; 252 252 ; Global marker which is DECLASM() compatible. 253 %macro GLOBALNAME 1 ,253 %macro GLOBALNAME 1 254 254 %ifndef ASM_FORMAT_BIN 255 255 global NAME(%1) … … 260 260 ;; 261 261 ; Global exported marker which is DECLASM() compatible. 262 %macro EXPORTEDNAME 1 ,262 %macro EXPORTEDNAME 1 263 263 %ifdef ASM_FORMAT_PE 264 264 export %1=NAME(%1) … … 274 274 ;; 275 275 ; Global marker which is DECLASM() compatible. 276 %macro GLOBALNAME_EX 2 ,276 %macro GLOBALNAME_EX 2 277 277 %ifndef ASM_FORMAT_BIN 278 278 %ifdef ASM_FORMAT_ELF … … 287 287 ;; 288 288 ; Global exported marker which is DECLASM() compatible. 289 %macro EXPORTEDNAME_EX 2 ,289 %macro EXPORTEDNAME_EX 2 290 290 %ifdef ASM_FORMAT_PE 291 291 export %1=NAME(%1) … … 332 332 GLOBALNAME_EX %1 %+ _EndProc, function hidden 333 333 %ifdef ASM_FORMAT_ELF 334 %ifndef __NASM__ ; nasm does this in the global directive. 334 335 size NAME(%1) NAME(%1 %+ _EndProc) - NAME(%1) 335 336 size NAME(%1 %+ _EndProc) 0 337 %endif 336 338 %endif 337 339 db 0xCC, 0xCC, 0xCC, 0xCC … … 898 900 ;; 899 901 ; 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 902 908 %ifndef KBUILD_GENERATING_MAKEFILE_DEPENDENCIES 903 909 %assign AssertVar_cbActual %1 %+ _size … … 911 917 ;; 912 918 ; 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 915 925 %ifndef KBUILD_GENERATING_MAKEFILE_DEPENDENCIES 916 926 %assign AssertVar_offActual %1 %+ . %+ %2
Note:
See TracChangeset
for help on using the changeset viewer.