flat assembler
Message board for the users of flat assembler.

Index > Main > include resolution process in famsg

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8466
Location: Kraków, Poland
Tomasz Grysztar 14 Oct 2025, 13:51
fabbel wrote:
.. actually, by a second look at current doc + quick look at famsg source code, i kinda understand it does similar file lookup as done by include directive - except the %include% env variable part... Am I correct ?
Yes, in both fasm and fasmg the FILE lookup should be the same as INCLUDE except for the environment variable paths.

Also keep in mind that your mention of %include% could be misunderstood by fasm users, because it looks like fasm's legacy feature that allows to put value of any environment variable into path, with % characters on both sides. You can see something like:
Code:
include "%fasminc%/win32ax.inc"    
in very old sources. This was largely superseded by the use of multi-path INCLUDE variable, and for fasmg I decided to not implement it, because the new engine allows to process the path during assembly (with -I switch to pass values from command line, if needed).
Post 14 Oct 2025, 13:51
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.