flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Soft include.

Author
Thread Post new topic Reply to topic
halyavin



Joined: 21 Aug 2004
Posts: 42
halyavin 31 Aug 2005, 17:04
As I know there isn't way to add some .inc file only if file exist (i.e. don't generate error when file is absent but include nothing). May be worth add this feature (or give simple source patch for it)?
Post 31 Aug 2005, 17:04
View user's profile Send private message Visit poster's website Reply with quote
ronware



Joined: 08 Jan 2004
Posts: 179
Location: Israel
ronware 31 Aug 2005, 17:51
I second the request!
Post 31 Aug 2005, 17:51
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger Reply with quote
Frank



Joined: 17 Jun 2003
Posts: 100
Frank 31 Aug 2005, 18:07
Out of curiosity: I tried to imagine a scenario where such capacity might be useful, but didn't find one. In all scenarios that came to mind, including a file that does not exist was a programmer error, on which the assembler should in fact abort. Could someone enlighten me? Thank you.
Post 31 Aug 2005, 18:07
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7103
Location: Slovakia
vid 31 Aug 2005, 20:49
for each use of such thing i can imagine exists also another nice solution wby existing and more common ways
Post 31 Aug 2005, 20:49
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
ronware



Joined: 08 Jan 2004
Posts: 179
Location: Israel
ronware 31 Aug 2005, 21:30
In my Reva Forth program, it is possible for a person to create a 'custom' version with his own code inside. I need to include (actually, I use 'file') custom code only if it exists.

What I currently do, is concatenate the sources outside of FASM and then use 'file' on the resultant combination. Similarly if one wanted to conditionally include a file.
Post 31 Aug 2005, 21:30
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger Reply with quote
Frank



Joined: 17 Jun 2003
Posts: 100
Frank 31 Aug 2005, 23:13
Thank you ronware, I see that I was lacking phantasy. An obvious follow-up question is: "Wouldn't it be better to always require the presence of the custom-user-code file, just to make sure that everything is in its proper place? -- If they don't have any custom code, the file may be zero bytes long." But that's clearly a matter of personal preference, so I won't ask the question.
Post 31 Aug 2005, 23:13
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< 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.