]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | // define BOOST_SYSTEM_SOURCE so that <boost/system/config.hpp> knows | |
17 | // the library is being built (possibly exporting rather than importing code) | |
18 | #define BOOST_SYSTEM_SOURCE | |
19 | ||
20 | #include <boost/system/system_error.hpp> | |
21 | ||
22 | namespace boost | |
23 | { | |
24 | namespace system | |
25 | { | |
26 | BOOST_SYSTEM_DECL void throw_test() | |
27 | { | |
28 | throw system_error(9999, system_category(), "boo boo"); | |
29 | } | |
30 | } | |
31 | } |