flat assembler
Message board for the users of flat assembler.

Index > Main > can you place all your variables/constants in a seperate ...

Author
Thread Post new topic Reply to topic
coconut



Joined: 02 Apr 2004
Posts: 326
Location: usa
coconut
can you place all your variables/constants in a seperate file (inc, h, etc), in the sense of 'cleaning' up the main file? if so, will these variables be global?
Post 13 Apr 2004, 04:27
View user's profile Send private message Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
There are macros for that purpouse in Fresh standard library. They are described in FreshGuide.chm file that comes with our IDE. Just download it and and see Wink
Post 13 Apr 2004, 07:19
View user's profile Send private message Visit poster's website Reply with quote
coconut



Joined: 02 Apr 2004
Posts: 326
Location: usa
coconut
thanks ill take a look

how about placing different sections in sepaerate file? like resource section, etc
Post 13 Apr 2004, 07:42
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
cocount - i think you didn't fully comprehend what is preprocessor. Directive "include" just inserts one source file into another, before it is assembled (and thus global/local is made).

Maybe you could take a look at my tuts (http://board.flatassembler.net/topic.php?t=1178), file 'preproc.txt' (article about preprocessor)
Post 13 Apr 2004, 18:49
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number 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.

Powered by rwasa.