flat assembler
Message board for the users of flat assembler.

Index > Main > include guard in fasm,how to implement?

Author
Thread Post new topic Reply to topic
Bob++



Joined: 12 Feb 2013
Posts: 92
Bob++
how do I avoid duplicated files in fasm? I trying to implement include guard but I can't see how to do this by using fasm preprocessor.
Thanks in advance.
Post 19 Mar 2013, 04:25
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
Bob++,

It's a recurring question, search yields the following:
Post 19 Mar 2013, 05:22
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
you can also structure your code in order to don't need include guards.
Post 20 Mar 2013, 10:47
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17716
Location: In your JS exploiting you and your system
revolution
edfed wrote:
you can also structure your code in order to don't need include guards.
But it is nice not to be forced to structure in such a way. Having standard includes that can then include their own dependencies is a nice feature that I try to support locally in my setup.
Post 20 Mar 2013, 10:55
View user's profile Send private message Visit poster's website Reply with quote
Bob++



Joined: 12 Feb 2013
Posts: 92
Bob++
baldr,thanks very much. I'm using a nice implementation with macros Smile
Post 23 Mar 2013, 19:33
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
Bob++,

Includes seem to be ultimate way to take piece of code as a whole (or ignore it thereof Wink)
Post 23 Mar 2013, 20:11
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.