Author Topic: Redefinig macros in macros...  (Read 2849 times)

nobody

  • Guest
Redefinig macros in macros...
« 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.

nobody

  • Guest
Re: Redefinig macros in macros...
« Reply #1 on: February 14, 2006, 06:18:35 PM »
Check SF RFE #829879.

nobody

  • Guest
Re: Redefinig macros in macros...
« Reply #2 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?