The #line directive changes the contents of _ _LINE_ _ and _ _FILE_ _, which are predefined identifiers. The basic form of the command is

#line number "filename"

where number is any positive integer and the filename is any valid file identifier. The value of number becomes the number of the current source line and filename becomes the name of the source file. The name of the file is optional. #line is primarily used for debugging purposes and special applications.

The _ _LINE_ _ identifier is an integer, and _ _FILE_ _ is a null-terminated string.

For example, the following sets the current line counter to 10 and the filename to “test”:

#line 10 "test"

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539 © 2008-2017.
If you may any questions please contact us: