Next: , Up: Preprocessing


5.1.1 #line directives

Line directives are inserted by the C preprocessor. They inform the GenoM parser about the line number and file name where each token was defined. Line directives can also be inserted manually to achieve special effect on error reporting or similar.

A line directive starts with the #line token, followed by the current line number, the file name of the source file and an optional numeric flag. The numeric flag is never used by GenoM. Its meaning depends on the C preprocessor used.

           #line linenum [ "filename" [flag] ]

The file name and line number replace the current location information. Line number is automatically incremented after each \n.