Avoid problems with CppUnit's macros when doing unity builds

This commit is contained in:
Martchus 2024-02-04 20:56:27 +01:00
parent ce31de2c6f
commit a4be8a56d1
1 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,12 @@
#define CPP_UTILITIES_HAS_EXEC_APP
#endif
// ensure CppUnit's macros produce unique variable names when doing unity builds
#if defined(__COUNTER__)
#undef CPPUNIT_UNIQUE_COUNTER
#define CPPUNIT_UNIQUE_COUNTER __COUNTER__
#endif
namespace CppUtilities {
/*!