autodoc.git
/
modref
/
ex
/
cpp_3A_3A
/
_23define.html
version
»
Context lines:
10
20
40
80
file
none
3
autodoc.git/modref/ex/cpp_3A_3A/_23define.html:1:
+
<!doctype html>
+
<html>
+
<head>
+
<meta content="width=device-width, initial-scale=1" name="viewport">
+
<meta charset="utf-8">
+
<title>#define - 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/_23charset.html" class="prev"><span>➤</span> #charset</a>
+
<a href="../../ex/cpp_3A_3A/_23elif.html" class="next">#elif <span>➤</span></a>
+
</div>
+
</nav>
+
</div>
+
<div class="contentbox">
+
<article>
+
<h1>Directive #define</h1>
+
+
+
<hr />
+
<dl class='group--doc'>
+
<dt class='head--type'><span class='homogen--type'>Directive</span>
+
<span class='homogen--name'><b>#define</b></span>
+
</dt>
+
<dd><p><code class='directive'>#define</code></p></dd>
+
+
<dt class='head--doc'>Description</dt>
+
<dd class='body--doc'><p>This directive is used to define or redefine a cpp macro.</p>
+
<p> The simplest way to use define is to write</p>
+
<pre><code>#define <identifier> <replacement string></code></pre><p>which will cause all subsequent occurances of <tt><b><i><identifier</i></b></tt>
+
to be replaced with the <tt><i><replacement string></i></tt>.</p>
+
<p> Define also has the capability to use arguments, thus a line like</p>
+
<pre><code>#define <identifier>(arg1, arg2) <replacement string></code></pre><p>would cause <tt><b><i><identifer></i></b></tt> to be a macro. All occurances of
+
'<tt><b><i><identifier></i></b>(something1,something2d)</tt>' would be replaced
+
with the <tt><i><replacement string></i></tt>.
+
And in the <tt><i><replacement string></i></tt>, <tt>arg1</tt> and <tt>arg2</tt>
+
will be replaced with <tt>something1</tt> and <tt>something2</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/_23define.html","name":"#define"};</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.