3 ms·
do { ... } while(0) is Ansi C and has type void. ({ ... }) is a GCC extension and its value is the value of the last expression inside the block. So they have
by tspiteri 18y ago
do { ... } while(0) is Ansi C and has type void.
({ ... }) is a GCC extension and its value is the value of the last expression inside the block.
So they have different uses.