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 committed by Phil Nash
parent 225e90d8ba
commit 184865358c

View File

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