mity / acutest

Simple header-only C/C++ unit testing facility.
MIT License
346 stars 96 forks source link

Fix sytax bug when compiling cpp project with no main #81

Open George-RG opened 3 weeks ago

George-RG commented 3 weeks ago

A syntax error was created when compiling in a cpp project with the option TEST_NO_MAIN because the if for the TEST_NO_MAIN was closed before the extern C if and thus a closing bracket had no match