Simplify test/Jamfile.v2, add no-exceptions test for lightweight_test.

This commit is contained in:
Peter Dimov
2014-06-05 17:15:24 +03:00
parent 7d2b68bb89
commit 658aa6205c
2 changed files with 48 additions and 44 deletions

View File

@@ -14,15 +14,21 @@ struct X
{
};
#if !defined( BOOST_NO_EXCEPTIONS )
# define LWT_THROW( x ) throw x
#else
# define LWT_THROW( x ) ((void)(x))
#endif
void f( bool x )
{
if( x )
{
throw X();
LWT_THROW( X() );
}
else
{
throw 5;
LWT_THROW( 5 );
}
}