|
|
1.1 root 1:
2:
3: #line Preprocessing Directive #line
4:
5:
6:
7:
8: Reset line number
9:
10: #lliinnee _n_u_m_b_e_r _n_e_w_l_i_n_e
11: #lliinnee _n_u_m_b_e_r _f_i_l_e_n_a_m_e _n_e_w_l_i_n_e
12: #lliinnee _m_a_c_r_o_s _n_e_w_l_i_n_e
13:
14: #line is a preprocessing directive that resets the line number
15: within a file. The ANSI Standard defines the line number as
16: being the number of newline characters read, plus one.
17:
18: #line can take any of three forms. The first, #lliinnee _n_u_m_b_e_r,
19: resets the current line number in the source file to number. The
20: second, #lliinnee _n_u_m_b_e_r _f_i_l_e_n_a_m_e, resets the line number to number
21: and changes the name of the file to filename. The third, #lliinnee
22: _m_a_c_r_o_s, contains macros that have been defined by earlier
23: preprocessing directives. When the macros have been expanded by
24: the preprocessor, the #lliinnee instruction will then resemble one of
25: the first two forms and be interpreted appropriately.
26:
27: ***** See Also *****
28:
29: C preprocessor
30:
31: ***** Notes *****
32:
33: Most often, #line is used to ensure that error messages point to
34: the correct line in the program's source code. A program gener-
35: ator may use this directive to associate errors in generated C
36: code with the original sources. For example, the program gener-
37: ator yyaacccc uses #lliinnee instructions to link the C code it generates
38: with the yyaacccc code written by the programmer.
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.