I finally managed to find how to tackle the todo on assertion:
- preserve the current scheme to implement an assertion: delegating to a =
function to allow overloading and optional parameters
- but make it so that the user condition is evaluated first (and not =
SourceLocation check point object...) to make debugging easier.
There is no change on existing assertion macros. But if you have written =
some custom assertions, you will need to update the code. See =
CPPUT_BEGIN_ASSERTION_MACRO() documentation in testinfo.h for an example =
on how to update your existing assertion code.
Let's me know if you run into any issues as I was not able to compile =
this on all the usual compilers (only tested msvc71 & msvc80).
Get latest updates about Open Source Projects, Conferences and News.