mirror of
https://github.com/boostorg/core.git
synced 2025-11-28 21:30:09 +01:00
Simplify test/Jamfile.v2, add no-exceptions test for lightweight_test.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user