mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
Implement the base offset parameter to 'struc'
This commit is contained in:
parent
716c17112d
commit
25a46fa5b0
1 changed files with 3 additions and 3 deletions
|
|
@ -25,14 +25,14 @@
|
|||
__SECT__
|
||||
%endmacro
|
||||
|
||||
%imacro struc 1.nolist
|
||||
%imacro struc 1-2.nolist 0
|
||||
%push struc
|
||||
%define %$strucname %1
|
||||
[absolute 0]
|
||||
[absolute %2]
|
||||
%$strucname: ; allow definition of `.member' to work sanely
|
||||
%endmacro
|
||||
%imacro endstruc 0.nolist
|
||||
%{$strucname}_size:
|
||||
%{$strucname}_size EQU $ - %$strucname
|
||||
%pop
|
||||
__SECT__
|
||||
%endmacro
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue