Writing a macro for logging
<p>im writing a logging class at the moment. The Logger works with streams and also prints the object wich is logging at the moment. Here is the macro:</p>

<pre><code>#define OBJLOG(DL, what) DL &lt;= this-&gt;Logger-&gt;getDebugLevel() ? *this-&gt;Logger &lt;&lt; DL &lt;&lt; "[" &lt;&lt; this-&gt;Name &lt;&lt; "]: "&lt;&lt; what &lt;&lt; std::endl : this-&gt;Logger-&gt;doNothing();
</code></pre>

<p>The pseudo code Varient for better overview:</p>

<pre><code>#define OBJLOG(debuglevel, what) debuglevel &lt;= logger.debuglevel ? logger.log(what) : logger.doNothing()
</code></pre>

<p>Is there any way to get around the doNothing function call, like doing nothing at all? Thanks in advance.</p>
