__LINE__

Preprocessor macro of the number of the line of the source code file being compiled.

Syntax
__LINE__
  
Remarks

The compiler defines this macro as a integer value of the number of the line of the source code file that the compiler is translating. The #line directive also affects the value that this macro expands to.

Related information
__ASSEMBLER__
__COMPILER__
__COUNTER__
__TARGETARCH__
__VERSION_NUM__
__VERSION__
__cplusplus
__CWBUILD__
__CWCC__
__DATE__
__embedded_cplusplus
__FILE__
__func__
__FUNCTION__
__ide_target()
__MWERKS__
__optlevel
__PRETTY_FUNCTION__
__profile__
__STDC__
__TIME__