flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar 06 Jan 2006, 08:54
Read the answer to fourth question in the FAQ and the section 2.3.7 of the manual (I feel like deja vu).
As for your particular problem, this macro will include each file only once, but only if the path given for such file is exactly the same each time (it's case sensitive): Code: macro includeonce path { file@include equ path match head path tail,files@included \{ file@include equ \} match head path,files@included \{ file@include equ \} match file, file@include \{ include file \} files@included equ files@included path } PS. Do not overuse FIX directive - it is no longer to widely used, the section 2.3.7 might explain to you, why. |
|||
![]() |
|
halyavin 06 Jan 2006, 09:53
Thanks for this macro idea. It can be improved (if necessary) a little:
Code: macro includeonce [path] { reverse file@include equ path forward match head path tail,files@included \{ file@include equ \} match head path,files@included \{ file@include equ \} match path tail, files@included \{ file@include equ \} match path,files@included \{ file@include equ \} common match file, file@include \{ include file \} forward files@included equ files@included path } for using as includeone "real path","mirror1","mirror2" PS When fix disappear from fasm syntax I manually execute "fix fix equ" command for my source files ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.