[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:47:13 PDT 2019


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

--- Comment #4 from C. Masloch <pushbx at ulukai.org> ---
A second %xdefine to a context-local list smacro still picks up the first list
entry plus the appended entries:

$ cat test4.asm
%push ROOT
%define %$namelist "", ""
%xdefine %$namelist %$namelist, "abc", "123"
%xdefine %$namelist %$namelist, "def", "456"
%error %$namelist
%pop
$ nasm test4.asm
test4.asm:5: error: "", "def", "456"
$ patnasm test4.asm
test4.asm:5: error: "", "", "abc", "123", "def", "456"
$ oldnasm test4.asm
test4.asm:5: error: "", "", "abc", "123", "def", "456"
$

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