CHECK no longer stops running SECTION on exception.

This seems to be much closer to desired behaviour than the current one, where
CHECK(false) lets the execution continue, but CHECK(<throws>) does not.
This commit is contained in:
Martin Hořeňovský 2017-01-15 20:28:02 +01:00
parent e1c4a4bd9b
commit 576d8c9d81

View File

@ -37,7 +37,7 @@
( __catchResult <= expr ).endExpression(); \
} \
catch( ... ) { \
__catchResult.useActiveException( Catch::ResultDisposition::Normal ); \
__catchResult.useActiveException( resultDisposition ); \
} \
INTERNAL_CATCH_REACT( __catchResult ) \
} while( Catch::isTrue( false && !!(expr) ) ) // expr here is never evaluated at runtime but it forces the compiler to give it a look