flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > [fasmg] "include!" why? |
Author |
|
Tomasz Grysztar 29 Jan 2021, 09:40
Just like any other "unconditional" command in fasmg, this variant of INCLUDE is evaluated even if inside a block like IF with false condition or inside a macro definition, etc.
For example, if you define a macro and put INCLUDE somewhere inside its body, it simply becomes part of the text of the macro. However, if you use INCLUDE! instead, it is evaluated during the definition of the macro, and you end up with a macro that has the entire contents of included file inside its body. |
|||
29 Jan 2021, 09:40 |
|
bitRAKE 29 Jan 2021, 21:01
So the result of using it for the api files is that the file paths are resolved eariler? I don't understand the use in the _end macro. _end becomes a collection of import and api invocations. I thought it might have something to do with the definition of import or api, but I couldn't see any effect in changing them.
_________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
29 Jan 2021, 21:01 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.