[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


--- Comment #2 from James Harris <james.harris.1 at gmail.com> ---
Here's a complete example.

File t6.nasm

%macro proc 1-*
  %push proc
  %stacksize flat
  %rep %0 - 1
    %rotate 1
    %arg %1:dword
  push ebp
  mov ebp, esp

%macro endproc 0
  pop ebp
  %pop proc

proc grandfather, p

proc father, q

proc son, p 

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