flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > PROC32.INC: Why unused proc exclude from source? |
Author |
|
Tomasz Grysztar 08 Sep 2010, 10:11
This feature was once requested by users and since then it became a standard behavior of "proc". It is the "if used name" line that causes this (if you decide to remove it, you also have to remove the "end if" that pairs to it, it is the one at the end of "finish@proc" macro).
|
|||
08 Sep 2010, 10:11 |
|
shoorick 08 Sep 2010, 10:39
if you wish to leave proc in binary file you may use something like this:
Code: dummyvar = myproc
proc myproc
... |
|||
08 Sep 2010, 10:39 |
|
Dimas 08 Sep 2010, 11:10
To Tomasz:
Yes, in fist time I made this. After I find another way. But question in this: MyMacro ... any code here <- this code don't exclude in any way MyMacro2 but proc label <- macro ... any code here <- may be exclude !!!!!!!!!!!!!!!!!!!!!!!! endp <- macro Is it feature of macro or fasm core? In which stage fasm leave out code. |
|||
08 Sep 2010, 11:10 |
|
Dimas 08 Sep 2010, 11:32
macro MyMacro {
if ~ used Name virtual end if } macro MyMacro2 { if ~ used Name end virtual end if } In this case code between MyMacro and MyMacro2 will be skip. But I find nothing of the kind in PROC32.INC Who cut code between proc and endp macro? |
|||
08 Sep 2010, 11:32 |
|
Tomasz Grysztar 08 Sep 2010, 11:39
It is done this way:
Code: macro MyMacro { if ~ used Name } macro MyMacro2 { end if } |
|||
08 Sep 2010, 11:39 |
|
Dimas 08 Sep 2010, 11:58
Yes!
end if <- in macro finish@proc called from endp macro. end if \} } <- in macro \} end if } <- in my mind, sorry... Thanks! |
|||
08 Sep 2010, 11:58 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.