How can I delegate %undef?
In the example below the assembler (called with "nasm.exe -t -f rdf q.asm") bemoans my code, displays
"q.asm:19: error: interminable macro recursion"
and hangs.
===q.asm===
bits 32
CPU P4
%macro my_def 2
%xdefine %1 esp+%2
%endmacro
%macro my_undef 1
%undef %1
%endmacro
global check_it
check_it:
my_def x,4
mov eax,[x]
my_undef x
my_def x,8
add eax,[x]
my_undef x
ret
===
What is the preferred way to do this?
Thanks,
Jasper