<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../../docs.xsl"?>

<docs type="symbol" project="SIEGE" version="0.8.2" rpath="../..">
	<file root="siege/core" name="core.DONE.h">
		<group key="Core" name="Core">
			<symbol id="12" kind="function" internal="false" cname="sgStop">
				<index>
					<entry key="Stop">sgStop</entry>
				</index>
				<section name="Name">
					<names>
						<name>sgStop</name>
						<descr>Stop the program main loop</descr>
					</names>
				</section>
				<section name="Synopsis">
					<code-block lang="C">void <ref local="true" path="." file="core.DONE" group="Core" name="sgStop" id="12">sgStop</ref>(<ref local="false" path=".." file="common" group="Common" name="SGbyte" id="3">SGint</ref> ret);</code-block>
				</section>
				<section name="Parameters">
					<params>
						<name>ret</name>
						<descr>exit status; it is the value provided by sgRun and sgLoop</descr>
					</params>
				</section>
				<section name="Description">
					<p>
						Requests that the game closes and SIEGE execution stops.
					</p>
					<p>
						Note that the current iteration of the SIEGE main loop will run in its entirety -- this merely stops the *next* iteration from starting.
					</p>
				</section>
				<section name="Examples">
					<code-block lang="C">// somewhere in game logic
if(exit_button_clicked)
    <ref local="true" path="." file="core.DONE" group="Core" name="sgStop" id="12">sgStop</ref>(0);</code-block>
				</section>
				<section name="See Also">
					<sees>
						<see><ref local="false" path="." file="core.DONE" group="Core" name="sgRun" id="10">sgRun</ref></see>
						<see><ref local="false" path="." file="core.DONE" group="Core" name="sgLoop" id="11">sgLoop</ref></see>
					</sees>
				</section>
			</symbol>
		</group>
	</file>
</docs>
