<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://datoolset.net/mw/index.php?action=history&amp;feed=atom&amp;title=Include_directive</id>
		<title>Include directive - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://datoolset.net/mw/index.php?action=history&amp;feed=atom&amp;title=Include_directive"/>
		<link rel="alternate" type="text/html" href="https://datoolset.net/mw/index.php?title=Include_directive&amp;action=history"/>
		<updated>2026-05-15T12:45:57Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.6</generator>

	<entry>
		<id>https://datoolset.net/mw/index.php?title=Include_directive&amp;diff=19374&amp;oldid=prev</id>
		<title>Sunjammer: /* Remarks */ Fixing a typo</title>
		<link rel="alternate" type="text/html" href="https://datoolset.net/mw/index.php?title=Include_directive&amp;diff=19374&amp;oldid=prev"/>
				<updated>2015-01-03T02:09:13Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Remarks: &lt;/span&gt; Fixing a typo&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 02:09, 3 January 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L13&quot; &gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Include files can be ''nested'', that is, an &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive can appear in a script which is itself referenced by another &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive. For example [[core_h]] and [[log_h]] are included in [[events_h]] which in turn is included in [[ability_h]]. Including &amp;lt;code&amp;gt;ability_h&amp;lt;/code&amp;gt; in a script provides access to all of the constants, functions and structs in each of these include files in the hierarchy. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Include files can be ''nested'', that is, an &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive can appear in a script which is itself referenced by another &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive. For example [[core_h]] and [[log_h]] are included in [[events_h]] which in turn is included in [[ability_h]]. Including &amp;lt;code&amp;gt;ability_h&amp;lt;/code&amp;gt; in a script provides access to all of the constants, functions and structs in each of these include files in the hierarchy. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;An include file is automatically created and maintained for every [[plot]] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;resources &lt;/del&gt;even though it does not appear in the [[script]] [[resource palette]]. The naming convention for these include files is to prefix the plot's [[Scripting terminology#Resref|resref]] with &amp;lt;code&amp;gt;plt_&amp;lt;/code&amp;gt;. The include file contains a [[string keyword|string]] constant for the plot's GUID and [[int keyword|int]] constants for each of the plot flags.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;An include file is automatically created and maintained for every [[plot]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;resource &lt;/ins&gt;even though it does not appear in the [[script]] [[resource palette]]. The naming convention for these include files is to prefix the plot's [[Scripting terminology#Resref|resref]] with &amp;lt;code&amp;gt;plt_&amp;lt;/code&amp;gt;. The include file contains a [[string keyword|string]] constant for the plot's GUID and [[int keyword|int]] constants for each of the plot flags.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- == Examples == --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- == Examples == --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- == See also == --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- == See also == --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Directives]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Directives]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sunjammer</name></author>	</entry>

	<entry>
		<id>https://datoolset.net/mw/index.php?title=Include_directive&amp;diff=18365&amp;oldid=prev</id>
		<title>Sunjammer: /* Remarks */ Fixing formatting</title>
		<link rel="alternate" type="text/html" href="https://datoolset.net/mw/index.php?title=Include_directive&amp;diff=18365&amp;oldid=prev"/>
				<updated>2012-03-01T19:29:00Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Remarks: &lt;/span&gt; Fixing formatting&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 19:29, 1 March 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L7&quot; &gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Remarks ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Remarks ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Scripting terminology#Constants|Constants]], [[Scripting terminology#Function|functions]] and [[struct keyword|structs]] can be organised in separate scripts or code libraries, known as &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;&lt;/del&gt;include files&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot; &lt;/del&gt;to allow code to be reused in different scripts without having to retype the code multiple times.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;[[Scripting terminology#Constants|Constants]], [[Scripting terminology#Function|functions]] and [[struct keyword|structs]] can be organised in separate scripts or code libraries, known as &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/ins&gt;include files&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'', &lt;/ins&gt;to allow code to be reused in different scripts without having to retype the code multiple times.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Include files are not executable scripts, in other words they will not contain a &amp;lt;code&amp;gt;void main()&amp;lt;/code&amp;gt; or a &amp;lt;code&amp;gt;int StartingConditional()&amp;lt;/code&amp;gt; function. As a result include files do not compile and do not produce a [[NCS|.ncs]] file. In fact when saving or attempting to compile an include file the Toolset will post a warning entry in the [[Log panel|log]] to this effect however this warning can be ignored. Sometimes an include file will have an empty &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt; function commented out near the start or end of the script as the author may have used it during development to check for syntax errors.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Include files are not executable scripts, in other words they will not contain a &amp;lt;code&amp;gt;void main()&amp;lt;/code&amp;gt; or a &amp;lt;code&amp;gt;int StartingConditional()&amp;lt;/code&amp;gt; function. As a result include files do not compile and do not produce a [[NCS|.ncs]] file. In fact when saving or attempting to compile an include file the Toolset will post a warning entry in the [[Log panel|log]] to this effect however this warning can be ignored. Sometimes an include file will have an empty &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt; function commented out near the start or end of the script as the author may have used it during development to check for syntax errors.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Include files can be &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;&lt;/del&gt;nested&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;&lt;/del&gt;, that is, an &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive can appear in a script which is itself referenced by another &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive. For example [[core_h]] and [[log_h]] are included in [[events_h]] which in turn is included in [[ability_h]]. Including &amp;lt;code&amp;gt;ability_h&amp;lt;/code&amp;gt; in a script provides access to all of the constants, functions and structs in each of these include files in the hierarchy. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;Include files can be &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/ins&gt;nested&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/ins&gt;, that is, an &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive can appear in a script which is itself referenced by another &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive. For example [[core_h]] and [[log_h]] are included in [[events_h]] which in turn is included in [[ability_h]]. Including &amp;lt;code&amp;gt;ability_h&amp;lt;/code&amp;gt; in a script provides access to all of the constants, functions and structs in each of these include files in the hierarchy. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;An include file is automatically created and maintained for every [[plot]] resources even though it does not appear in the [[script]] [[resource palette]]. The naming convention for these include files is to prefix the plot's [[Scripting terminology#Resref|resref]] with &amp;lt;code&amp;gt;plt_&amp;lt;/code&amp;gt;. The include file contains a [[string keyword|string]] constant for the plot's GUID and [[int keyword|int]] constants for each of the plot flags.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;An include file is automatically created and maintained for every [[plot]] resources even though it does not appear in the [[script]] [[resource palette]]. The naming convention for these include files is to prefix the plot's [[Scripting terminology#Resref|resref]] with &amp;lt;code&amp;gt;plt_&amp;lt;/code&amp;gt;. The include file contains a [[string keyword|string]] constant for the plot's GUID and [[int keyword|int]] constants for each of the plot flags.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sunjammer</name></author>	</entry>

	<entry>
		<id>https://datoolset.net/mw/index.php?title=Include_directive&amp;diff=18364&amp;oldid=prev</id>
		<title>Sunjammer: /* Remarks */ Fixing typo</title>
		<link rel="alternate" type="text/html" href="https://datoolset.net/mw/index.php?title=Include_directive&amp;diff=18364&amp;oldid=prev"/>
				<updated>2012-03-01T19:26:49Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Remarks: &lt;/span&gt; Fixing typo&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 19:26, 1 March 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L9&quot; &gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Scripting terminology#Constants|Constants]], [[Scripting terminology#Function|functions]] and [[struct keyword|structs]] can be organised in separate scripts or code libraries, known as &amp;quot;include files&amp;quot; to allow code to be reused in different scripts without having to retype the code multiple times.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Scripting terminology#Constants|Constants]], [[Scripting terminology#Function|functions]] and [[struct keyword|structs]] can be organised in separate scripts or code libraries, known as &amp;quot;include files&amp;quot; to allow code to be reused in different scripts without having to retype the code multiple times.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Include files are not executable scripts, in other words they will not contain a &amp;lt;code&amp;gt;void main()&amp;lt;/code&amp;gt; or a &amp;lt;code&amp;gt;int StartingConditional&amp;lt;/code&amp;gt; function. As a result include files do not compile and do not produce a [[NCS|.ncs]] file. In fact when saving or attempting to compile an include file the Toolset will post a warning entry in the [[Log panel|log]] to this effect however this warning can be ignored. Sometimes an include file will have an empty &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt; function commented out near the start or end of the script as the author may have used it during development to check for syntax errors.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;Include files are not executable scripts, in other words they will not contain a &amp;lt;code&amp;gt;void main()&amp;lt;/code&amp;gt; or a &amp;lt;code&amp;gt;int StartingConditional&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;()&lt;/ins&gt;&amp;lt;/code&amp;gt; function. As a result include files do not compile and do not produce a [[NCS|.ncs]] file. In fact when saving or attempting to compile an include file the Toolset will post a warning entry in the [[Log panel|log]] to this effect however this warning can be ignored. Sometimes an include file will have an empty &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt; function commented out near the start or end of the script as the author may have used it during development to check for syntax errors.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Include files can be &amp;quot;nested&amp;quot;, that is, an &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive can appear in a script which is itself referenced by another &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive. For example [[core_h]] and [[log_h]] are included in [[events_h]] which in turn is included in [[ability_h]]. Including &amp;lt;code&amp;gt;ability_h&amp;lt;/code&amp;gt; in a script provides access to all of the constants, functions and structs in each of these include files in the hierarchy. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Include files can be &amp;quot;nested&amp;quot;, that is, an &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive can appear in a script which is itself referenced by another &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive. For example [[core_h]] and [[log_h]] are included in [[events_h]] which in turn is included in [[ability_h]]. Including &amp;lt;code&amp;gt;ability_h&amp;lt;/code&amp;gt; in a script provides access to all of the constants, functions and structs in each of these include files in the hierarchy. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sunjammer</name></author>	</entry>

	<entry>
		<id>https://datoolset.net/mw/index.php?title=Include_directive&amp;diff=18361&amp;oldid=prev</id>
		<title>Sunjammer: /* Remarks */ Fixing link</title>
		<link rel="alternate" type="text/html" href="https://datoolset.net/mw/index.php?title=Include_directive&amp;diff=18361&amp;oldid=prev"/>
				<updated>2012-03-01T13:37:13Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Remarks: &lt;/span&gt; Fixing link&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:37, 1 March 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L7&quot; &gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Remarks ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Remarks ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Scripting terminology#&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;constants&lt;/del&gt;|Constants]], [[Scripting terminology#&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;function&lt;/del&gt;|functions]] and [[struct keyword|structs]] can be organised in separate scripts or code libraries, known as &amp;quot;include files&amp;quot; to allow code to be reused in different scripts without having to retype the code multiple times.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;[[Scripting terminology#&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Constants&lt;/ins&gt;|Constants]], [[Scripting terminology#&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Function&lt;/ins&gt;|functions]] and [[struct keyword|structs]] can be organised in separate scripts or code libraries, known as &amp;quot;include files&amp;quot; to allow code to be reused in different scripts without having to retype the code multiple times.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Include files are not executable scripts, in other words they will not contain a &amp;lt;code&amp;gt;void main()&amp;lt;/code&amp;gt; or a &amp;lt;code&amp;gt;int StartingConditional&amp;lt;/code&amp;gt; function. As a result include files do not compile and do not produce a [[NCS|.ncs]] file. In fact when saving or attempting to compile an include file the Toolset will post a warning entry in the [[Log panel|log]] to this effect however this warning can be ignored. Sometimes an include file will have an empty &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt; function commented out near the start or end of the script as the author may have used it during development to check for syntax errors.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Include files are not executable scripts, in other words they will not contain a &amp;lt;code&amp;gt;void main()&amp;lt;/code&amp;gt; or a &amp;lt;code&amp;gt;int StartingConditional&amp;lt;/code&amp;gt; function. As a result include files do not compile and do not produce a [[NCS|.ncs]] file. In fact when saving or attempting to compile an include file the Toolset will post a warning entry in the [[Log panel|log]] to this effect however this warning can be ignored. Sometimes an include file will have an empty &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt; function commented out near the start or end of the script as the author may have used it during development to check for syntax errors.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L13&quot; &gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Include files can be &amp;quot;nested&amp;quot;, that is, an &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive can appear in a script which is itself referenced by another &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive. For example [[core_h]] and [[log_h]] are included in [[events_h]] which in turn is included in [[ability_h]]. Including &amp;lt;code&amp;gt;ability_h&amp;lt;/code&amp;gt; in a script provides access to all of the constants, functions and structs in each of these include files in the hierarchy. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Include files can be &amp;quot;nested&amp;quot;, that is, an &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive can appear in a script which is itself referenced by another &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive. For example [[core_h]] and [[log_h]] are included in [[events_h]] which in turn is included in [[ability_h]]. Including &amp;lt;code&amp;gt;ability_h&amp;lt;/code&amp;gt; in a script provides access to all of the constants, functions and structs in each of these include files in the hierarchy. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;An include file is automatically created and maintained for every [[plot]] resources even though it does not appear in the [[script]] [[resource palette]]. The naming convention for these include files is to prefix the plot's [Scripting terminology#&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;resref&lt;/del&gt;|resref]] with &amp;lt;code&amp;gt;plt_&amp;lt;/code&amp;gt;. The include file contains a [[string keyword|string]] constant for the plot's GUID and [[int keyword|int]] constants for each of the plot flags.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;An include file is automatically created and maintained for every [[plot]] resources even though it does not appear in the [[script]] [[resource palette]]. The naming convention for these include files is to prefix the plot's &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;[Scripting terminology#&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Resref&lt;/ins&gt;|resref]] with &amp;lt;code&amp;gt;plt_&amp;lt;/code&amp;gt;. The include file contains a [[string keyword|string]] constant for the plot's GUID and [[int keyword|int]] constants for each of the plot flags.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- == Examples == --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- == Examples == --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- == See also == --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- == See also == --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Directives]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Directives]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sunjammer</name></author>	</entry>

	<entry>
		<id>https://datoolset.net/mw/index.php?title=Include_directive&amp;diff=18360&amp;oldid=prev</id>
		<title>Sunjammer: Created</title>
		<link rel="alternate" type="text/html" href="https://datoolset.net/mw/index.php?title=Include_directive&amp;diff=18360&amp;oldid=prev"/>
				<updated>2012-03-01T13:36:04Z</updated>
		
		<summary type="html">&lt;p&gt;Created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The [[include directive]], &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt;, instructs the compiler to treat the contents of the specified file as if those contents had been inserted in the source script at the point where the directive appears. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;dascript&amp;gt;&lt;br /&gt;
#include &amp;quot;&amp;lt;script_resref&amp;gt;&amp;quot; &lt;br /&gt;
&amp;lt;/dascript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Remarks ==&lt;br /&gt;
&lt;br /&gt;
[[Scripting terminology#constants|Constants]], [[Scripting terminology#function|functions]] and [[struct keyword|structs]] can be organised in separate scripts or code libraries, known as &amp;quot;include files&amp;quot; to allow code to be reused in different scripts without having to retype the code multiple times.&lt;br /&gt;
&lt;br /&gt;
Include files are not executable scripts, in other words they will not contain a &amp;lt;code&amp;gt;void main()&amp;lt;/code&amp;gt; or a &amp;lt;code&amp;gt;int StartingConditional&amp;lt;/code&amp;gt; function. As a result include files do not compile and do not produce a [[NCS|.ncs]] file. In fact when saving or attempting to compile an include file the Toolset will post a warning entry in the [[Log panel|log]] to this effect however this warning can be ignored. Sometimes an include file will have an empty &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt; function commented out near the start or end of the script as the author may have used it during development to check for syntax errors.&lt;br /&gt;
&lt;br /&gt;
Include files can be &amp;quot;nested&amp;quot;, that is, an &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive can appear in a script which is itself referenced by another &amp;lt;code&amp;gt;#include&amp;lt;/code&amp;gt; directive. For example [[core_h]] and [[log_h]] are included in [[events_h]] which in turn is included in [[ability_h]]. Including &amp;lt;code&amp;gt;ability_h&amp;lt;/code&amp;gt; in a script provides access to all of the constants, functions and structs in each of these include files in the hierarchy. &lt;br /&gt;
&lt;br /&gt;
An include file is automatically created and maintained for every [[plot]] resources even though it does not appear in the [[script]] [[resource palette]]. The naming convention for these include files is to prefix the plot's [Scripting terminology#resref|resref]] with &amp;lt;code&amp;gt;plt_&amp;lt;/code&amp;gt;. The include file contains a [[string keyword|string]] constant for the plot's GUID and [[int keyword|int]] constants for each of the plot flags.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == Examples == --&amp;gt;&lt;br /&gt;
&amp;lt;!-- == See also == --&amp;gt;&lt;br /&gt;
[[Category:Directives]]&lt;/div&gt;</summary>
		<author><name>Sunjammer</name></author>	</entry>

	</feed>