News for hackers. Stuff that matters.
Re:MinUnit – A minimal unit testing framework for C (2002) by davydog187 on Friday August 17, 2018 @10:48AM (#17783202)
Whats up with the do/while loops? Does that just make the return syntactically valid?

Apologies, its been a while since I've touched C/C++

Re:MinUnit – A minimal unit testing framework for C (2002) by tom_ on Friday August 17, 2018 @10:50AM (#17783216)
This is dealt with at the bottom of the article. It's a C FAQ: http://c-faq.com/cpp/multistmt.html
Re:MinUnit – A minimal unit testing framework for C (2002) by okl on Friday August 17, 2018 @01:05PM (#17784263)
GCC has an extension that can be used instead of the do-while loop, see example macro definition here: https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html
Re:MinUnit – A minimal unit testing framework for C (2002) by pdexter on Friday August 17, 2018 @10:50AM (#17783214)