5d18bb2018-08-13Per Cederqvist <!doctype html> <html> <head> <meta content="width=device-width, initial-scale=1" name="viewport"> <meta charset="utf-8"> <title>#include - Pike Reference Manual</title> <!-- 221--> <link rel='stylesheet' href='../../style.css'> <script src='../../site.js'></script> <script src='../../constants.js'></script> <script>PikeDoc.NO_DYNAMIC = true;</script> <style type='text/css'> svg line { stroke:#343434; stroke-width:2; } svg text { fill:#343434; } svg a { fill:#0768b2; text-decoration: underline; } </style> </head> <body> <header> <div class="header"> <div id="version"><strong data-id="version"></strong></div> <button id="burger"> <span class="bar"></span> <span class="bar"></span> <span class="bar"></span> <span class="bar"></span> </button><!-- Hamburger icon --> <h1> <a href="http://pike.lysator.liu.se/" class="logo"> <span>Pike programming language</span> </a> </h1> </div> </header> <div id="page"> <div class="navbar"> <nav> <div class="inner" id="navbar"> <a href='../../index.html'><b class='top head'>Top</b></a> <a href='../../ex/cpp_3A_3A.html'><b class='head'>cpp::</b></a> <script></script> <noscript> <div class='sidebar'> <a href='../../ex/cpp_3A_3A/index.html'><b>Symbol index</b></a><br /> </div> </noscript> </div> </nav> </div> <div class="content"> <div class="navbox"> <nav> <div class="sidebar"> <a href="../../ex/cpp_3A_3A/_23ifndef.html" class="prev"><span>&#10148;</span> #ifndef</a> <a href="../../ex/cpp_3A_3A/_23line.html" class="next">#line <span>&#10148;</span></a> </div> </nav> </div> <div class="contentbox"> <article> <h1>Directive #include</h1> <hr /> <dl class='group--doc'> <dt class='head--type'><span class='homogen--type'>Directive</span> <span class='homogen--name'><b>#include</b></span> </dt> <dd><p><code class='directive'>#include</code></p></dd> <dt class='head--doc'>Description</dt> <dd class='body--doc'><p><a class='ms reference' href='../cpp_3A_3A.html'>#include</a> is used to insert the contents of another file into the processed file at the place of the include directive.</p> <p> Files can be referenced either by absolute or relative path from the source file, or searched for in the include paths.</p> <p> To include a file with absolute or relative path, use double quotes, e.g. <tt>#include "constants.pike"</tt> or <tt>#include "../debug.h"</tt>.</p> <p> To include from the include paths, use less than and greater than, e.g. <tt>#include &lt;profiling.h&gt;</tt>.</p> <p> It is also possible to include a file whose path is defined in a preprocessor macro, e.g. <tt>#include USER_SETTINGS</tt>.</p> </dd></dl> </article> </div> </div> </div> <footer> <div id="build-date">Extracted from <strong data-id="version"></strong> as of <strong data-id="date" data-timestamp=""></strong>.</div> </footer> <script>PikeDoc.current = {"link":"ex/cpp_3A_3A/_23include.html","name":"#include"};</script> <script src='../../ex/cpp_3A_3A/index.js'></script> <script src='../../ex/cpp_3A_3A/load_index.js'></script> <script> // Tell PikeDoc that next actions are from loaded scripts PikeDoc.isInline = false; </script> </body> </html>