Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

do … while(0) is a well-know method of writing multi-statement macros:

http://c-faq.com/cpp/multistmt.html

while … while(0) looks like a mistake?



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

Search: