View Full Version : Manifest constants
shiva
01-03-2004, 07:55 AM
Where shall we have all the list of manifest constants like
__FILE__, __LINE___...etc., in which header file.
i3839
01-03-2004, 03:28 PM
In no header file, they are recognized and provided by the compiler. See the compiler's documentation for a list. A headerfile couldn't know such info, thus not define it for you. Also the value is different depending on where you use it. Two __LINE__'s on different lines have a different value, no headerfile or macro could do that.
shiva
01-03-2004, 06:25 PM
Do you know the link for the compiler documentation...I thought these are all should be defined in macros.....that's why asked for the header files.
If you know the link for the compiler documentation...please post it.
i3839
01-03-2004, 07:38 PM
Quick Google search gives:
http://developer.apple.com/documentation/DeveloperTools/gcc-3.3/cpp/Standard-Predefined-Macros.html#Standard%20Predefined%20Macros
RobSeace
01-03-2004, 07:44 PM
Well, we'd need to know what compiler you're using for that...
Just taking a stab in the dark, and guessing that you're using GCC,
try looking here (http://gcc.gnu.org/onlinedocs/gcc-3.2.3/cpp/Predefined-Macros.html) and here (http://gcc.gnu.org/onlinedocs/gcc-3.2.3/gcc/Function-Names.html) and perhaps elsewhere here (http://gcc.gnu.org/onlinedocs/)...
RobSeace
01-03-2004, 07:45 PM
Oops, i3839 beat me to it... ;-)
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.