flat assembler
Message board for the users of flat assembler.
Index
> Main > [fasmg]Why do we use "!" in macro |
Author |
|
Tomasz Grysztar 27 Aug 2016, 18:14
The unconditional macros in fasmg are there mainly to allow defining constructions that in fasm required use of preprocessor's FIX directive.
What in fasm looked like: Code: macro foo name { macro name arg \{ content_start } endfoo fix content_end } definition_end foo test ; ... endfoo Code: macro foo name esc macro name arg content_start end macro macro endfoo! content_end esc end macro definition_end end macro foo test ; ... endfoo Code: test equ test! ; this would expand till infinity, fasmg signals an error l4m2 wrote: What if uncondictional macro expanding only occur in the first layer?(when used it directly expand but wait when it is there again after expanding) Code: macro test arg if arg > 0 display `arg end macro macro test! arg test arg end if end macro test 1 if 0 test 2 |
|||
27 Aug 2016, 18:14 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.