I see these with all kinds of source codes that I look at, what are they for?
Printable View
I see these with all kinds of source codes that I look at, what are they for?
Intermediate files are what is produced once the preprocessor has run its course. They are files which have their include files loaded in, macros replaced, etc. So, say I have this:
Blah.h
..and main.cppCode:class Blah {
int myInt;
};
main.i (intermediate file), is this:Code:#include "Blah.h"
#define ZEROLOLZ 0
int main()
{
return ZEROLOLZ;
}
chemCode:class Blah {
int myInt;
};
int main()
{
return 0;
}
So they are pretty much useless and should be deleted, right?
Pretty much, yep. They are interesting to have a look at though.. because not all preprocessors act in the same way.Quote:
Originally Posted by Bobalandi
chem
oo I think I will look, just wondering, but is it possible to incorperate them into other programs?
Of course. They're still code.. they're just ALL code. If you include a file.. say, stdio.h, into main.cpp, main.i will have all of stdio.h's code. So, things can get pretty big..
chem