Hacker News new | past | comments | ask | show | jobs | submit login

It's also cleaner than the do { ... } while(0) business, imho.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: