Re:What is your favourite C programming trick?
by rcfox on Friday October 14, 2011 @02:42PM
(#3112380)
({ ... }) does this too. (Is this GCC-specific?)
[ Parent
| on HN ]
Re:What is your favourite C programming trick?
by mansr on Friday October 14, 2011 @02:56PM
(#3112433)
That is a gcc extension. The construct as a whole has the value of the last statement executed within. Usually an inline function is preferable since it achieves the same thing using only standard syntax.