huangblue / c

0 stars 0 forks source link

#line的意义 #69

Open huangblue opened 7 years ago

huangblue commented 7 years ago

用来设置LINE和“FILE的。


9.2.7 The #line Directive The general format for declaring the #line directive is as follows:

line constant "fileName"

This directive causes the compiler to treat subsequent lines in the program as if the name of the source file were fileName, and as if the line number of all subsequent lines began at constant. If fileName is not specified, the filename specified by the last #line directive or the name of the source file (if no filename was previously specified) is used. The #line directive is primarily used to control the filename and line number that are displayed whenever an error message is issued by the compiler.