<?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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Variable length C macros</title>
	<atom:link href="http://blog.linuxgamepublishing.com/2009/05/30/variable-length-c-macros/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.linuxgamepublishing.com/2009/05/30/variable-length-c-macros/</link>
	<description>Commercial gaming for Linux</description>
	<lastBuildDate>Fri, 09 Nov 2012 18:53:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Maciej Mrozowski</title>
		<link>http://blog.linuxgamepublishing.com/2009/05/30/variable-length-c-macros/comment-page-1/#comment-1511</link>
		<dc:creator>Maciej Mrozowski</dc:creator>
		<pubDate>Fri, 15 Jan 2010 18:42:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.linuxgamepublishing.com/?p=221#comment-1511</guid>
		<description>Err, I may be missing something, but following code always worked for me in GCC:

#define FORMAT(level,format,args ...) &quot;%-6s [%s] &quot;format, #level, logger-&gt;name.c_str(), ##args

so:

#define macro(args ...) call_function(##args)

(I see Torbjörn provided link for it)</description>
		<content:encoded><![CDATA[<p>Err, I may be missing something, but following code always worked for me in GCC:</p>
<p>#define FORMAT(level,format,args &#8230;) &#8220;%-6s [%s] &#8220;format, #level, logger-&gt;name.c_str(), ##args</p>
<p>so:</p>
<p>#define macro(args &#8230;) call_function(##args)</p>
<p>(I see Torbjörn provided link for it)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Torbjörn Andersson</title>
		<link>http://blog.linuxgamepublishing.com/2009/05/30/variable-length-c-macros/comment-page-1/#comment-372</link>
		<dc:creator>Torbjörn Andersson</dc:creator>
		<pubDate>Tue, 02 Jun 2009 09:55:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.linuxgamepublishing.com/?p=221#comment-372</guid>
		<description>It should perhaps be pointed out that this form of variadic macros is a GCC extension. Nothing wrong with that, but I think it&#039;s good to be aware of it. It&#039;s been there for as long as I can remember, and I might even have used it once or twice myself:

http://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/Variadic-Macros.html

The CPP manual has some more information, but I haven&#039;t had the time to digest it. There does seem to be a couple of ways of dealing with the trailing comma, but unfortunately they too are GCC extensions:

http://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html</description>
		<content:encoded><![CDATA[<p>It should perhaps be pointed out that this form of variadic macros is a GCC extension. Nothing wrong with that, but I think it&#8217;s good to be aware of it. It&#8217;s been there for as long as I can remember, and I might even have used it once or twice myself:</p>
<p><a href="http://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/Variadic-Macros.html" rel="nofollow">http://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/Variadic-Macros.html</a></p>
<p>The CPP manual has some more information, but I haven&#8217;t had the time to digest it. There does seem to be a couple of ways of dealing with the trailing comma, but unfortunately they too are GCC extensions:</p>
<p><a href="http://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html" rel="nofollow">http://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Simms (CEO and head of Development)</title>
		<link>http://blog.linuxgamepublishing.com/2009/05/30/variable-length-c-macros/comment-page-1/#comment-356</link>
		<dc:creator>Michael Simms (CEO and head of Development)</dc:creator>
		<pubDate>Sat, 30 May 2009 17:14:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.linuxgamepublishing.com/?p=221#comment-356</guid>
		<description>Thanks {:-)
(If Id binned it, I wouldnt have been able to say thanks, so, I kept it)</description>
		<content:encoded><![CDATA[<p>Thanks {:-)<br />
(If Id binned it, I wouldnt have been able to say thanks, so, I kept it)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://blog.linuxgamepublishing.com/2009/05/30/variable-length-c-macros/comment-page-1/#comment-355</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Sat, 30 May 2009 11:14:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.linuxgamepublishing.com/?p=221#comment-355</guid>
		<description>Quite good that you find out about these solutions and even better that you release them, might come in handy one day when someone is doing something similar.
The main problem in coding is actually to find out about all the capabilities a language has to offer.
Actually that seems to be the main problem with many things.
Most of the time you just don&#039;t know that certain things are allowed.</description>
		<content:encoded><![CDATA[<p>Quite good that you find out about these solutions and even better that you release them, might come in handy one day when someone is doing something similar.<br />
The main problem in coding is actually to find out about all the capabilities a language has to offer.<br />
Actually that seems to be the main problem with many things.<br />
Most of the time you just don&#8217;t know that certain things are allowed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RK</title>
		<link>http://blog.linuxgamepublishing.com/2009/05/30/variable-length-c-macros/comment-page-1/#comment-354</link>
		<dc:creator>RK</dc:creator>
		<pubDate>Sat, 30 May 2009 10:00:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.linuxgamepublishing.com/?p=221#comment-354</guid>
		<description>Typo: &quot;This means that in gcc, is you wanted to create a define...&quot;
&quot;is&quot; should be &quot;if&quot; in this sentence.

Feel free to Moderate this comment into oblivion once you&#039;ve fixed the typo. :)</description>
		<content:encoded><![CDATA[<p>Typo: &#8220;This means that in gcc, is you wanted to create a define&#8230;&#8221;<br />
&#8220;is&#8221; should be &#8220;if&#8221; in this sentence.</p>
<p>Feel free to Moderate this comment into oblivion once you&#8217;ve fixed the typo. :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
