Hi Bas.
r736 works like a charm here. Thanks. :-)
I guess there is still a risk that if someone changes the include
order of "MemoryLeakDetectorNewMacros.h" and
"MemoryLeakDetectorMallocMacros.h", or for some reason enables only
the latter, then "StandardCLibrary.h" will be included before or
without "CPPUTEST_USE_STD_CPP_LIB" being set, so my problem would come
back.
Maybe those types of #defines, which are sensitive to include order,
should go to some kind of a "config.h" that any other header file
makes sure to include first when making use of macros defined therein.
However, in this case, one could also stop using
"CPPUTEST_USE_STD_CPP_LIB" and let everyone check on the original
"CPPUTEST_STD_CPP_LIB_DISABLED" instead, thereby reducing the number
of preprocessor variables that risk go out of sync because of
overlapping semantics.
Anyway, I am perfectly happy as it is now for my use, so the above is
just my two cents on what might add a bit of robustness to CppUTest.
--
Thanks,