a1c5881995-08-09Fredrik Hübinette (Hubbe) <html><head> <style type='text/css'> svg line { stroke:#343434; stroke-width:2; } svg text { fill:#343434; } svg a { fill:#0768b2; text-decoration: underline; } </style>
a44f221996-02-24Fredrik Hübinette (Hubbe) <title>Pike Reference Manual - #line</title>
a1c5881995-08-09Fredrik Hübinette (Hubbe) <link rel='stylesheet' href='../../style.css' /></head> <body topmargin='0' leftmargin='0' marginheight='0' marginwidth='0' bgcolor='#ffffff' text='#000000' link='#000099' alink='#002040' vlink='#000099'> <table widht="100%"> <tr> <td colspan='3'></td> <td colspan='2' align='right'>Extracted from at .</td> </tr> <tr> <td width="0%"><img src="../../../images/unit.gif" alt="" width="10" height="1"></td> <td width="1%"> <a href="http://pike.lysator.liu.se/"><img src="../../../images/pike_logo.gif" border="0" alt="pike.lysator.liu.se" width="181" height="41" hspace="5"></a></td> <td width="0%"><img src="../../../images/unit.gif" alt="" width="10" height="1"></td> <td width="99%"> <table align="center" border="0" width="100%" cellspacing="0" cellpadding="0" valign="center"> <tr> <td width="1%"> <img src="../../../images/pike_line_left.gif" alt="" border="0" width="5" height="11"> </td> <td background="../../../images/pike_line_middle.gif" width="98%"> <img src="../../../images/unit.gif" alt="" border="0" width="11" height="11"> </td> <td width="1%"> <img src="../../../images/pike_line_right.gif" alt="" border="0" width="5" height="11"> </td> </tr> </table> </td> <td width="0%"><img src="../../../images/unit.gif" alt="" width="10" height="1"></td> </tr> <tr> <td colspan="5"><img src="../../../images/unit.gif" alt="" width="1" height="10"></td> </tr> </table> <table> <tr> <td width='180' valign='top' bgcolor='#f0f0f0'><a href='../../index.html'><b class='top head'>Top</b></a>
a44f221996-02-24Fredrik Hübinette (Hubbe) <a href='../../ex/cpp_3A_3A.html'><b class='head'>cpp::</b></a>
a1c5881995-08-09Fredrik Hübinette (Hubbe) <script></script> <noscript> <div class='sidebar'>
a44f221996-02-24Fredrik Hübinette (Hubbe) <a href='../../ex/cpp_3A_3A/index.html'><b>Symbol index</b></a><br />
a1c5881995-08-09Fredrik Hübinette (Hubbe) </div> </noscript> </td> <td width='520' valign='top'> <table border="0" width="520" bgcolor="#e0e0e0" cellpadding="0" cellspacing="4" class='sidebar'> <tr> <td valign="middle">
a44f221996-02-24Fredrik Hübinette (Hubbe)  <a href="../../ex/cpp_3A_3A/_23include.html"><img src="../../../images/prev.gif" hspace="3" border="0" alt="previous" >#include</a>
a1c5881995-08-09Fredrik Hübinette (Hubbe)  <br /> </td> <td align="right" valign="middle">
a44f221996-02-24Fredrik Hübinette (Hubbe)  <a href="../../ex/cpp_3A_3A/_23pragma.html">#pragma<img src="../../../images/next.gif" hspace="3"
a1c5881995-08-09Fredrik Hübinette (Hubbe)  border="0" alt="next" ></a> <br /> </td> </tr> </table>
a44f221996-02-24Fredrik Hübinette (Hubbe)  <h1>Directive #line</h1>
a1c5881995-08-09Fredrik Hübinette (Hubbe)  <hr /> <dl class='group--doc'>
a44f221996-02-24Fredrik Hübinette (Hubbe) <dt class='head--type'><span class='homogen--type'>Directive</span> <span class='homogen--name'><b>#line</b></span>
a1c5881995-08-09Fredrik Hübinette (Hubbe) </dt>
a44f221996-02-24Fredrik Hübinette (Hubbe) <dd><p><code class='directive'>#line</code></p></dd>
a1c5881995-08-09Fredrik Hübinette (Hubbe)  <dt class='head--doc'>Description</dt> <dd class='body--doc'>
a44f221996-02-24Fredrik Hübinette (Hubbe) <p>This directive tells the compiler what line and file we are compiling. This is for instance used by the #include directive to tell the compiler that we are compiling another file. The directive takes the line number first, and optionally, the file afterwards.
a1c5881995-08-09Fredrik Hübinette (Hubbe) </p>
d8215a1996-09-22Fredrik Hübinette (Hubbe) <p>This can also be used when generating pike from something else, to
a44f221996-02-24Fredrik Hübinette (Hubbe) tell teh compiler where the code originally originated from.</p> </dd> <dt class='head--doc'>Example</dt> <dd class='example'><pre> <tt><p>#line 4 "foo.cf" /* The next line was generated from 4 in foo.cf */<br /> <br />
a1c5881995-08-09Fredrik Hübinette (Hubbe) </p>
a44f221996-02-24Fredrik Hübinette (Hubbe) </tt></pre></dd></dl>
a1c5881995-08-09Fredrik Hübinette (Hubbe)  <hr size='1' noshade='1' /> </td> </tr> </table> </body>
a44f221996-02-24Fredrik Hübinette (Hubbe) <script>PikeDoc.current = {"link":"ex/cpp_3A_3A/_23line.html","name":"#line"};</script> <script src='../../ex/cpp_3A_3A/index.js'></script> <script src='../../ex/cpp_3A_3A/load_index.js'></script>
a1c5881995-08-09Fredrik Hübinette (Hubbe) </html>