forked from boostorg/core
Simplify test/Jamfile.v2, add no-exceptions test for lightweight_test.
This commit is contained in:
1 parent
7d2b68bb89
commit
658aa6205c
2 files changed
+48
-44
No files matched your search
@@ -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