flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
JohnFound 03 Jul 2004, 22:53
quiveror wrote: I looked in 'proc' macro and wonder about the symbol 'first@args'. What is this used for ? Why should we need this ? I only found its use in 'endp' macro, just to construct and purge an empty macro like: Code: macro rstargs#first@args _% %_ rstargs all@args purge rstargs#first@args The trick is deep here. ![]() If "first@args" is equal to empty string (in case you define procedure with zero arguments) the first row will redefine the macro "rstargs" to empty macro that do nothing - so the next line "rstargs all@args" will do nothing too. The third row purges the so defined macro. Regards. |
|||
![]() |
|
quiveror 04 Jul 2004, 16:46
what a nice trick! Thank you V. much
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.