[LC++]Tracking header files
Julien Patrick Claassen
julien at c-lab.de
Wed Aug 8 19:35:04 UTC 2001
Hello Mark!
I think all header files have a symbol like:
_IOSTREAM_H or so, to prevent the headerfile from being included twice.
If your program is still small, you can just check for the symbol:
_CSTRING_H
after any inclusion of a new header. And if the symbol exists you could
print an informative message like:
in file: myheader.hpp including: string.h symbol found.
I'm not exactly sure about the exact name of the symbol they use, but
you could look it up in the cstring.h, must be right at the beginning.
This possibility should work, although it is not the best I assume.
Maybe there are tools, but I don't know about them.
My kindest regards
Julien
Julien Patrick Claassen
jclaassen at gmx.de
julien at c-lab.de
http://www.geocities.com/jjs_home
SBS C-LAB
Fuerstenallee 11
33102 Paderborn
Phone: (+49) 5251 60 6060
Fax: (+49) 5251 60 6065
www.c-lab.de
More information about the tuxCPProgramming
mailing list