flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Question on building macros dynamically |
Author |
|
revolution 13 Mar 2010, 17:15
You need to escape the hashes (#).
Code: macro varName\#.\#name |
|||
13 Mar 2010, 17:15 |
|
Siberian 13 Mar 2010, 17:21
So hashes are also bound to current macro context. Good to know. Thank you revolution for such a quick answer.
|
|||
13 Mar 2010, 17:21 |
|
revolution 13 Mar 2010, 17:24
You have to tell the preprocessor at what depth you need the hashes processed. You do this by prefixing the appropriate number of backslashes.
|
|||
13 Mar 2010, 17:24 |
|
Siberian 13 Mar 2010, 17:31
Yes, I understand. That is what I call "sensitive (or bound) to current macro context". I just didn't know that hashes are "sensitive" too. Thank you again.
|
|||
13 Mar 2010, 17:31 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.