2009-04-07 03:02:15 +00:00
|
|
|
//Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc.
|
2008-09-11 18:15:25 +00:00
|
|
|
|
|
|
|
//Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
|
|
|
#define BOOST_NO_EXCEPTIONS
|
|
|
|
#include <boost/throw_exception.hpp>
|
2020-01-28 16:39:28 -08:00
|
|
|
#include <stdlib.h>
|
2008-09-11 18:15:25 +00:00
|
|
|
|
|
|
|
class my_exception: public std::exception { };
|
|
|
|
|
|
|
|
namespace
|
|
|
|
boost
|
|
|
|
{
|
|
|
|
void
|
|
|
|
throw_exception( std::exception const & )
|
|
|
|
{
|
2019-06-06 15:09:27 -07:00
|
|
|
exit(0);
|
2008-09-11 18:15:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
boost::throw_exception(my_exception());
|
2019-06-06 15:09:27 -07:00
|
|
|
return 1;
|
2008-09-11 18:15:25 +00:00
|
|
|
}
|