COHERENT manpages

This page displays the COHERENT manpage for __LINE__ [Current line within a source file].

List of available manpages
Index


__LINE__ -- Manifest Constant

Current line within a source file

__LINE__ is a preprocessor constant  that is defined by the C preprocessor.
It represents  the current line within the source  file.  The ANSI standard
defines the  current line as  being the number of  newline characters read,
plus one.

__LINE__  may not  be  the subject  of  a #define  or #undef  preprocessing
directive.

Example

For an example of how to use __LINE__ in a program, see __DATE__.

See Also

__DATE__,
__FILE__,
__STDC__,
__TIME__,
manifest constant
ANSI Standard, §6.8.8