6f5f61 | 2018-09-12 | Henrik Grubbström (Grubba) | | <!doctype html>
<html>
<head>
<meta content="width=device-width, initial-scale=1" name="viewport">
<meta charset="utf-8">
<title>#else - Pike Reference Manual</title>
|
5a2c0a | 2021-05-12 | Henrik Grubbström (Grubba) | | <a href="../../ex/cpp_3A_3A/_23elifndef.html" class="prev"><span>➤</span> #elifndef</a>
|
6f5f61 | 2018-09-12 | Henrik Grubbström (Grubba) | | <a href="../../ex/cpp_3A_3A/_23elseif.html" class="next">#elseif <span>➤</span></a>
</div>
</nav>
</div>
<div class="contentbox">
<article>
<h1>Directive #else</h1>
<hr />
<dl class='group--doc'>
<dt class='head--type'><span class='homogen--type'>Directive</span>
<span class='homogen--name'><b>#else</b></span>
</dt>
<dd><p><code class='directive'>#else</code></p></dd>
<dt class='head--doc'>Description</dt>
<dd class='body--doc'><p>This directive is used to divide the current code block into another
code block with inverse activation.</p>
</dd>
<dt class='head--doc'>Example</dt>
<dd class='example'><pre><pre><code>#ifdef FAST_ALGORITHM
do_fast_algorithm();
#elif defined(EXPERIMENTAL_ALGORITHM)
do_experimental_algorithm();
#else
do_default_algorithm();
#endif</code></pre></pre></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/_23else.html","name":"#else"};</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>
|