[Nasm-bugs] [Bug 3392623] git nasm: %xdefine macro(a) (a) expands a

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Thu Oct 17 01:43:56 PDT 2019


https://bugzilla.nasm.us/show_bug.cgi?id=3392623

--- Comment #3 from C. Masloch <pushbx at ulukai.org> ---
The erroneous behaviour is slightly different if the list smacro is a
context-local macro:

$ cat test2.asm
%push ROOT
%define %$namelist "", ""
%xdefine %$namelist %$namelist, "abc", "123"
%error %$namelist
%pop
$ nasm test2.asm
test2.asm:4: error: "", "abc", "123"
$ patnasm test2.asm
test2.asm:4: error: "", "", "abc", "123"
$ oldnasm test2.asm
test2.asm:4: error: "", "", "abc", "123"
$ cat test3.asm
%define list "", ""
%xdefine list list, "abc", "123"

%error list
$ nasm test3.asm
test3.asm:4: error: list, "abc", "123"
$ patnasm test3.asm
test3.asm:4: error: "", "", "abc", "123"
$ oldnasm test3.asm
test3.asm:4: error: "", "", "abc", "123"
$

-- 
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