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
Apologies, its been a while since I've touched C/C++