<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[präprozessor]]></title><description><![CDATA[<p>enum DEBUGLEVEL { NONE, LOW, MEDIUM, HIGH };</p>
<p>#define DEBUGLEVEL NONE</p>
<p>#if (DEBUGLEVEL &lt; LOW)<br />
#define ASSERT(x)<br />
#else<br />
#define ASSERT(x)\<br />
//blablabla<br />
#endif</p>
<p>hi,<br />
in dem obigen code führt mein prog immer das aus was anch dem else kommt nie die anweisung nach dem if.<br />
weiß jemand woran das liegt. ich hab dev c++ benutzt</p>
<p>schon vielen dank für eure hilf</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/246261/präprozessor</link><generator>RSS for Node</generator><lastBuildDate>Fri, 18 Sep 2026 07:43:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/246261.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 25 Jul 2009 09:57:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to präprozessor on Sat, 25 Jul 2009 09:57:13 GMT]]></title><description><![CDATA[<p>enum DEBUGLEVEL { NONE, LOW, MEDIUM, HIGH };</p>
<p>#define DEBUGLEVEL NONE</p>
<p>#if (DEBUGLEVEL &lt; LOW)<br />
#define ASSERT(x)<br />
#else<br />
#define ASSERT(x)\<br />
//blablabla<br />
#endif</p>
<p>hi,<br />
in dem obigen code führt mein prog immer das aus was anch dem else kommt nie die anweisung nach dem if.<br />
weiß jemand woran das liegt. ich hab dev c++ benutzt</p>
<p>schon vielen dank für eure hilf</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1749309</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1749309</guid><dc:creator><![CDATA[pidof]]></dc:creator><pubDate>Sat, 25 Jul 2009 09:57:13 GMT</pubDate></item><item><title><![CDATA[Reply to präprozessor on Sat, 25 Jul 2009 10:04:46 GMT]]></title><description><![CDATA[<p>Der Präprozessor wertet keine enums aus. Probier mal</p>
<pre><code class="language-cpp">#define NONE 0
#define LOW  1
#define MEDIUM 2
#define HIGH 3
</code></pre>
<p>Obwohl ich diese Konstanten noch mit 'nem Präfix versehen würde, damit nix irgendwo ausversehen ersetzt wird (also z.B. &quot;DEBUGLEVEL_NONE&quot; statt &quot;NONE&quot;).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1749311</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1749311</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Sat, 25 Jul 2009 10:04:46 GMT</pubDate></item><item><title><![CDATA[Reply to präprozessor on Sat, 25 Jul 2009 10:06:24 GMT]]></title><description><![CDATA[<p>danke hat geholfen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1749313</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1749313</guid><dc:creator><![CDATA[pidof]]></dc:creator><pubDate>Sat, 25 Jul 2009 10:06:24 GMT</pubDate></item></channel></rss>