but her's one solution
Code: Select all
; First we need some macros:
Macro _EndOfMacro1
EndM
EndMacro
Macro _EndOfMacro2
acro
EndMacro
Macro EndOfMacro
:_EndOfMacro1#_EndOfMacro2
EndMacro
; Now for the test:
Macro g1(x)
Macro x
Debug "Hi from macro generated macro"
EndOfMacro
EndMacro
Macro g2(x, p1)
Macro x
Debug p1
EndOfMacro
EndMacro
Macro g3(x)
Macro x(p1)
Debug p1
EndOfMacro
EndMacro
g1(sayhi)
g2(saythat, "A nother macro generated macro")
g3(useparameter)
sayhi
saythat
useparameter("This is my parameter text 1")
useparameter("This is my parameter text 2")