<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://fenixwiki.booleansoup.com/skins/common/feed.css?63"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Precompiler ifdef - Revision history</title>
		<link>http://fenixwiki.booleansoup.com/index.php?title=Precompiler_ifdef&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.10.1</generator>
		<lastBuildDate>Fri, 01 May 2026 09:19:49 GMT</lastBuildDate>
		<item>
			<title>Sandman: New page: category:precompiler  == Definition == '''#ifdef''' &lt;what to check&gt; :&lt;if block&gt; ['''#else :&lt;else block&gt;] '''#endif'''  Checks if ''what to check'' was previously defined in the code. I...</title>
			<link>http://fenixwiki.booleansoup.com/index.php?title=Precompiler_ifdef&amp;diff=4119&amp;oldid=prev</link>
			<description>&lt;p&gt;New page: &lt;a href=&quot;/index.php/Category:Precompiler&quot; title=&quot;Category:Precompiler&quot;&gt;category:precompiler&lt;/a&gt;  == Definition == '''#ifdef''' &amp;lt;what to check&amp;gt; :&amp;lt;if block&amp;gt; ['''#else :&amp;lt;else block&amp;gt;] '''#endif'''  Checks if ''what to check'' was previously defined in the code. I...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[category:precompiler]]&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
'''#ifdef''' &amp;lt;what to check&amp;gt;&lt;br /&gt;
:&amp;lt;if block&amp;gt;&lt;br /&gt;
['''#else&lt;br /&gt;
:&amp;lt;else block&amp;gt;]&lt;br /&gt;
'''#endif'''&lt;br /&gt;
&lt;br /&gt;
Checks if ''what to check'' was previously defined in the code. If it is, the code in ''if block'' will be compiled. If it isn't, the code in ''else block'' will be compiled or when there is no ''else block'', the compiler will continue after [[precompiler_endif|#endif]].&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Here we will be able to choose whether to support a certain function with the precompiler:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#ifdef SOMEFUNCTIONALITY&lt;br /&gt;
Function int SomeFunction()&lt;br /&gt;
Begin&lt;br /&gt;
    return 0;&lt;br /&gt;
End&lt;br /&gt;
#endif&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[Function]], [[Begin]], [[End]], [[precompiler_endif|#endif]]&lt;br /&gt;
&lt;br /&gt;
Consider a define to set the framepercentage in a certain process. Now for some reason you might want to just have a frame; compiled when that define is set to ''100''.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Loop&lt;br /&gt;
    #ifdef FRAMEPERC&lt;br /&gt;
        #if FRAMEPERC == 100&lt;br /&gt;
            frame;&lt;br /&gt;
        #else&lt;br /&gt;
            frame(FRAMEPERC);&lt;br /&gt;
        #endif&lt;br /&gt;
    #else&lt;br /&gt;
        frame;&lt;br /&gt;
    #endif&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[Loop]], [[End]], [[frame]], [[precompiler_if|#if]], [[precompiler_else|#else]], [[precompiler_endif|#endif]]&lt;br /&gt;
&lt;br /&gt;
{{Precompiler_statements}}&lt;/div&gt;</description>
			<pubDate>Sun, 30 Dec 2007 13:53:47 GMT</pubDate>			<dc:creator>Sandman</dc:creator>			<comments>http://fenixwiki.booleansoup.com/index.php/Talk:Precompiler_ifdef</comments>		</item>
	</channel>
</rss>