• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1  //  throw_test.cpp  --------------------------------------------------------===========-//
2  
3  //  Copyright Beman Dawes 2010
4  
5  //  Distributed under the Boost Software License, Version 1.0.
6  //  See www.boost.org/LICENSE_1_0.txt
7  
8  //  Library home page is www.boost.org/libs/system
9  
10  //--------------------------------------------------------------------------------------//
11  
12  //  See dynamic_link_test.cpp comments for use case.
13  
14  //--------------------------------------------------------------------------------------//
15  
16  #include <boost/system/system_error.hpp>
17  #include <boost/config.hpp>
18  
19  #if defined(THROW_DYN_LINK)
20  # define EXPORT BOOST_SYMBOL_EXPORT
21  #else
22  # define EXPORT
23  #endif
24  
throw_test()25  EXPORT void throw_test()
26  {
27      throw boost::system::system_error( 9999, boost::system::system_category(), "boo boo" );
28  }
29