UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

  • Index
  • » C
  • » Manifest constants

#1 2004-01-03 08:55 AM

shiva
Member
From: INDIA
Registered: 2002-08-10
Posts: 94

Re: Manifest constants

Where shall we have all the list of manifest constants like
__FILE__, __LINE___...etc., in which header file.

Offline

#2 2004-01-03 04:28 PM

i3839
Oddministrator
From: Amsterdam
Registered: 2003-06-07
Posts: 2,239

Re: Manifest constants

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.

Offline

#3 2004-01-03 07:25 PM

shiva
Member
From: INDIA
Registered: 2002-08-10
Posts: 94

Re: Manifest constants

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.

Offline

#4 2004-01-03 08:38 PM

i3839
Oddministrator
From: Amsterdam
Registered: 2003-06-07
Posts: 2,239

Re: Manifest constants

Offline

#5 2004-01-03 08:44 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,847
Website

Re: Manifest constants

Offline

#6 2004-01-03 08:45 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,847
Website

Re: Manifest constants

Oops, i3839 beat me to it... ;-)

Offline

  • Index
  • » C
  • » Manifest constants

Board footer

Powered by FluxBB