NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: nobody on February 14, 2006, 09:37:18 AM

Title: Redefinig macros in macros...
Post by: nobody on February 14, 2006, 09:37:18 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:18:35 PM
Check SF RFE #829879.
Title: Re: Redefinig macros in macros...
Post by: nobody on February 15, 2006, 07:56:11 AM
Well... This RFE was modified last in late of 2003-11 and in the current NASM release (after year) this feature was not implemented yet. Am I correct?