[Nasm-bugs] [Bug 3392543] Pain with %arg names in macro expansions
noreply-nasm at gorcunov.org
noreply-nasm at gorcunov.org
Sun Dec 30 12:39:11 PST 2018
https://bugzilla.nasm.us/show_bug.cgi?id=3392543
--- Comment #2 from James Harris <james.harris.1 at gmail.com> ---
Here's a complete example.
File t6.nasm
%macro proc 1-*
%push proc
%1:
%stacksize flat
%rep %0 - 1
%rotate 1
%arg %1:dword
%endrep
push ebp
mov ebp, esp
%endmacro
%macro endproc 0
pop ebp
ret
%pop proc
%endmacro
proc grandfather, p
endproc
proc father, q
endproc
proc son, p
endproc
Assemble command and output:
$ nasm t6.nasm
t6.nasm:25: error: (proc:6) `%arg' missing argument parameter
$
Basically, the first p and q are accepted but Nasm baulks at the final p.
--
You are receiving this mail because:
You are watching all bug changes.
You are on the CC list for the bug.
More information about the Nasm-bugs
mailing list