Hi,
This should make those who are pedantic about coding style a bit more happy ;)
And seriously, having "do { } while(0)" for a multiline macro is a must.
Best regards,
Siarhei Siamashka
On Sunday 18 January 2009 17:11:22 ext Luiz Augusto von Dentz wrote:
> Hi
>
> > And seriously, having "do { } while(0)" for a multiline macro is a must.
>
> Interesting, what does it do that { } doesn't?
By searching in the Internet it is possible to find some rationale for this:
http://vivekkutal.blogspot.com/2006/03/do-while0.html
Anyway, it is part of linux kernel CodingStyle
--
Best regards,
Siarhei Siamashka
Hi
> And seriously, having "do { } while(0)" for a multiline macro is a must.
Interesting, what does it do that { } doesn't?
--
Luiz Augusto von Dentz
Engenheiro de Computa??o
Hi Siarhei,
> This should make those who are pedantic about coding style a bit more happy ;)
>
> And seriously, having "do { } while(0)" for a multiline macro is a must.
applied the patch. Thanks.
Regards
Marcel