flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar 09 Oct 2005, 23:55
Perhaps you forgot to use "match" to pass the value of "__StringsArray" to the macroinstruction. Try this:
Code: macro IncludeStringConstants { match strings, __StringsArray \{ __IncludeStringConstants strings \} } You can also get rid of "dummy" with "match": Code: macro __IncludeStringConstants [lbls, text] { ; ... } macro IncludeStringConstants { match dummy=,strings, __StringsArray \{ __IncludeStringConstants strings \} } PS. Well, I had also to replace the "_text" with "text" to get it working. |
|||
![]() |
|
decard 10 Oct 2005, 15:47
Thanks.
Seems that I still don't really get why match should be used in such cases ![]() |
|||
![]() |
|
vid 10 Oct 2005, 16:59
decard: reread the preprocessing priorities. replacing equates is the least priorized thing (unlike replacing macro/match/whatever arguments), so unrolling body of macro "__IncludeStringConstants" will occur instead. Then in macro contents only "dummy" will have some value, which will be (literaly) "__StringsArray".
hope i got right ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.