NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: nobody on February 14, 2006, 09:43:07 AM

Title: Redefinig macros in macros...
Post by: nobody on February 14, 2006, 09:43:07 AM
For example, we have macros that define something:

%macro DEFINE_ME 2
%define %1 %2
%endmacro

and then involving it several times for the same name:

DEFINE_ME name, value1

...

DEFINE_ME name, value2

The problem is that name at the second place beening expanded to value1 so macros expansion evaluates to  

%define value1 value2

But wishful result is:

%define name value2

Is there any way to solve this problem? Thanks.
Title: Re: Redefinig macros in macros...
Post by: nobody on February 14, 2006, 06:19:43 PM
Check SF RFE #829879.