Menu

Line directive

Cyder

Line Directive

The c11 standard describes a preprocessor directive #line. It can be used, to manipulate the aparent line and filename of the current file. Line directives are emitted by the frontend, when not preprocessing with -no-line

TPP Implements this directive without any extensions:

#line 42 "foo_file.h"
__FILE__ __LINE__ // Expands to ["foo_file.h"][ ][42]
__FILE__ __LINE__ // Expands to ["foo_file.h"][ ][43]

s.a. [File macro]
s.a. [Line macro]
s.a. [Bracket notation]


Related

Wiki: Bracket notation
Wiki: File macro
Wiki: Line macro