flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > How check if macro is defined ? |
Author |
|
foxz 11 Aug 2005, 08:42
How check if macro is defined
macro totor { ... } macro chk a { if defined a ... endif } chk totor ; that doesn't work ( _________________ Syl |
|||
11 Aug 2005, 08:42 |
|
vid 11 Aug 2005, 14:34
always define some equate along with macro and check for it... but i quess there is a better solution for what you want do, be more specific please
|
|||
11 Aug 2005, 14:34 |
|
vid 15 Aug 2005, 09:57
ehm, why are you coding assembly then?
Anyway, if you are only trying to learn macrosyntax it's okay. that's the nicest possible solution, if FASM had all operators for stuff like checking if macro is defined then FASM itself wouldn't be so nice. But you can (maybe, i'm not sure) "overload" keyword "macro" to always define macro + equate you'll check for. And you can make macro to check that equate.. etc. etc. |
|||
15 Aug 2005, 09:57 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.