<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://www.mesham.com/index.php?action=history&amp;feed=atom&amp;title=Include_once</id>
	<title>Include once - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.mesham.com/index.php?action=history&amp;feed=atom&amp;title=Include_once"/>
	<link rel="alternate" type="text/html" href="http://www.mesham.com/index.php?title=Include_once&amp;action=history"/>
	<updated>2026-04-23T15:36:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>http://www.mesham.com/index.php?title=Include_once&amp;diff=990&amp;oldid=prev</id>
		<title>Polas: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="http://www.mesham.com/index.php?title=Include_once&amp;diff=990&amp;oldid=prev"/>
		<updated>2019-04-15T15:44:51Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 15:44, 15 April 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Polas</name></author>
		
	</entry>
	<entry>
		<id>http://www.mesham.com/index.php?title=Include_once&amp;diff=989&amp;oldid=prev</id>
		<title>Polas at 18:08, 13 January 2013</title>
		<link rel="alternate" type="text/html" href="http://www.mesham.com/index.php?title=Include_once&amp;diff=989&amp;oldid=prev"/>
		<updated>2013-01-13T18:08:09Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 18:08, 13 January 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot; &gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The preprocessor will search the include directories when the filename is contained in quotation marks. If contained within &amp;#039;&amp;#039;&amp;lt; &amp;gt;&amp;#039;&amp;#039; then the preprocessor will search the system include locations too which have priority.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The preprocessor will search the include directories when the filename is contained in quotation marks. If contained within &amp;#039;&amp;#039;&amp;lt; &amp;gt;&amp;#039;&amp;#039; then the preprocessor will search the system include locations too which have priority.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;Since: Version 1.0&amp;#039;&amp;#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:preprocessor]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:preprocessor]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Polas</name></author>
		
	</entry>
	<entry>
		<id>http://www.mesham.com/index.php?title=Include_once&amp;diff=988&amp;oldid=prev</id>
		<title>Polas: Created page with &#039;== Syntax ==  &lt;nowiki&gt;#&lt;/nowiki&gt;include_once [sourcefile]  == Semantics ==  Will read in the Mesham source file specified and will embed the contents of this source file into the…&#039;</title>
		<link rel="alternate" type="text/html" href="http://www.mesham.com/index.php?title=Include_once&amp;diff=988&amp;oldid=prev"/>
		<updated>2013-01-12T13:13:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;== Syntax ==  &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;include_once [sourcefile]  == Semantics ==  Will read in the Mesham source file specified and will embed the contents of this source file into the…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;include_once [sourcefile]&lt;br /&gt;
&lt;br /&gt;
== Semantics ==&lt;br /&gt;
&lt;br /&gt;
Will read in the Mesham source file specified and will embed the contents of this source file into the code at the current location IF AND ONLY IF that specific file has not already been included before. This is a very useful mechanism to avoid duplicate includes when combining together multiple libraries.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
 #include_once &amp;quot;test.mesh&amp;quot;&lt;br /&gt;
 #include_once &amp;quot;test.mesh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The preprocessing stage will replace the first include with the contents of &amp;#039;&amp;#039;test.mesh&amp;#039;&amp;#039;, but the second include_once will be ignored because that specific file has already been included. In the absence of the &amp;#039;&amp;#039;.mesh&amp;#039;&amp;#039; ending, the preprocessor will attempt to match on the absolute filename first and if this can not be found will then look for a file with the corresponding name and &amp;#039;&amp;#039;.mesh&amp;#039;&amp;#039; ending.&lt;br /&gt;
&lt;br /&gt;
The preprocessor will search the include directories when the filename is contained in quotation marks. If contained within &amp;#039;&amp;#039;&amp;lt; &amp;gt;&amp;#039;&amp;#039; then the preprocessor will search the system include locations too which have priority.&lt;br /&gt;
&lt;br /&gt;
[[Category:preprocessor]]&lt;/div&gt;</summary>
		<author><name>Polas</name></author>
		
	</entry>
</feed>