autodoc.git
/
modref
/
ex
/
cpp_3A_3A
/
_23_28_23_29.html
version
»
Context lines:
10
20
40
80
file
none
3
autodoc.git/modref/ex/cpp_3A_3A/_23_28_23_29.html:1:
+
<!doctype html>
+
<html>
+
<head>
+
<meta content="width=device-width, initial-scale=1" name="viewport">
+
<meta charset="utf-8">
+
<title>Pike Reference Manual - #(#)</title>
+
<!-- 220-->
+
<link rel='stylesheet' href='../../style.css'>
+
<script src='../../site.js'></script>
+
$version_js$
+
$date_js$
+
<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>
+
<div id="burger">☰</div><!-- 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/_23_22_22.html" class="prev"><span>➤</span> #""</a>
+
<a href="../../ex/cpp_3A_3A/_23_3Cinteger_3E.html" class="next">#<integer> <span>➤</span></a>
+
</div>
+
</nav>
+
</div>
+
<div class="contentbox">
+
<article>
+
<h1>Directive #(#)</h1>
+
+
+
<hr />
+
<dl class='group--doc'>
+
<dt class='head--type'><span class='homogen--type'>Directive</span>
+
<span class='homogen--name'><b>#(#)</b></span>
+
</dt>
+
<dd><p><code class='directive'>#(#)</code><br>
+
<code class='directive'>#[#]</code><br>
+
<code class='directive'>#{#}</code></p></dd>
+
+
<dt class='head--doc'>Description</dt>
+
<dd class='body--doc'><p>If a string literal is opened with <tt>#(</tt> all subsequent
+
characters until the closing <tt>#)</tt> will be treated as
+
literals, including newlines, <tt>\</tt>, <tt>"</tt> and <tt>'</tt>.</p>
+
<p> There are three different pairs of start/end tokens for this
+
type of literals, #( and #), #[ and #], and #{ and #}.</p>
+
</dd>
+
<dt class='head--doc'>Example</dt>
+
<dd class='example'><pre><p><code class='expr'>#["\n\'##]</code> is equivalent to <code class='expr'>"\"\\n\\'#"</code>.</p>
+
<p> The preprocessor directive <a class='ms reference' href='../cpp_3A_3A.html'>#string</a> will load the file in the
+
string that follows and insert its contents as a string. This
+
preprocessor directive may appear anywhere a string may appear.</p>
+
</pre></dd>
+
<dt class='head--doc'>Example</dt>
+
<dd class='example'><pre><pre><code>do_something<span class='delim'>(</span>#<span class='type'>string</span> <span class='string'>"the_file.wks"</span>
+
<span class='delim'>)</span><span class='delim'>;</span>
+
</code></pre>
+
</pre></dd>
+
<dt class='head--doc'>See also</dt>
+
<dd class='body--doc'><p><a class='ms reference' href='../cpp_3A_3A.html'>#include</a></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"></strong>.</div>
+
</footer>
+
<script>PikeDoc.current = {"link":"ex/cpp_3A_3A/_23_28_23_29.html","name":"#(#)"};</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>
Newline at end of file added.