Author Topic: Macro recursion  (Read 10620 times)


  • Guest
Macro recursion
« on: January 01, 2009, 10:41:16 PM »
I'm writing a set of macros to emulate a high level programming language and I'm having some issues with recursive macros.

%macro params 1
   %macro %1

That will %endmacro the macro whose name is %1, right? I need it to end the macro params. And I need something like the opposite:

%macro endfunction 0

Where the %endmacro on line 2 is placed into the text, not ending the macro endfunction. Any thoughts?