<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[MISRA Discussion Forums - 4.5 Lexical conventions]]></title>
		<link>https://forum.misra.org.uk/</link>
		<description><![CDATA[MISRA Discussion Forums - https://forum.misra.org.uk]]></description>
		<pubDate>Thu, 05 Nov 2026 15:13:19 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Does Directive 5.7.2 apply to #elif directives?]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1708</link>
			<pubDate>Mon, 30 Sep 2024 21:29:22 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=6099">rg99</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1708</guid>
			<description><![CDATA[Is the following intended to be compliant with 5.7.2?<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#if 1<br />
/* some code */<br />
#elif 0<br />
/* some code */<br />
#endif</code></div></div><br />
Presumably this is just as offensive to the spirit of 5.7.2 as <span style="font-family: Courier New;" class="mycode_font"><span style="font-weight: bold;" class="mycode_b">#if 0</span></span> is but an official position would be appreciated as the Directive only actually mentions <span style="font-family: Courier New;" class="mycode_font"><span style="font-weight: bold;" class="mycode_b">#if</span></span>.]]></description>
			<content:encoded><![CDATA[Is the following intended to be compliant with 5.7.2?<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#if 1<br />
/* some code */<br />
#elif 0<br />
/* some code */<br />
#endif</code></div></div><br />
Presumably this is just as offensive to the spirit of 5.7.2 as <span style="font-family: Courier New;" class="mycode_font"><span style="font-weight: bold;" class="mycode_b">#if 0</span></span> is but an official position would be appreciated as the Directive only actually mentions <span style="font-family: Courier New;" class="mycode_font"><span style="font-weight: bold;" class="mycode_b">#if</span></span>.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Do any other forms of conditional inclusion violate Directive 5.7.2?]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1706</link>
			<pubDate>Fri, 27 Sep 2024 11:21:28 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=6099">rg99</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1706</guid>
			<description><![CDATA[In particular, which of the following violates Directive 5.7.2?<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#if 0<br />
#endif<br />
<br />
#if 0U<br />
#endif<br />
<br />
#if '&#92;0'<br />
#endif<br />
<br />
#if 1 - 1<br />
#endif<br />
<br />
#if MACRO * 0<br />
#endif<br />
<br />
#if MACRO1 - MACRO2<br />
#endif</code></div></div>]]></description>
			<content:encoded><![CDATA[In particular, which of the following violates Directive 5.7.2?<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#if 0<br />
#endif<br />
<br />
#if 0U<br />
#endif<br />
<br />
#if '&#92;0'<br />
#endif<br />
<br />
#if 1 - 1<br />
#endif<br />
<br />
#if MACRO * 0<br />
#endif<br />
<br />
#if MACRO1 - MACRO2<br />
#endif</code></div></div>]]></content:encoded>
		</item>
	</channel>
</rss>