File indexing completed on 2025-01-18 09:38:59
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_JSON_DETAIL_EXCEPT_HPP
0011 #define BOOST_JSON_DETAIL_EXCEPT_HPP
0012
0013 #include <boost/json/error.hpp>
0014
0015 namespace boost {
0016 namespace json {
0017 namespace detail {
0018
0019 #define BOOST_JSON_FAIL(ec, e) \
0020 BOOST_STATIC_CONSTEXPR source_location loc = BOOST_CURRENT_LOCATION; \
0021 (ec).assign(e, &loc);
0022
0023 BOOST_JSON_DECL
0024 void
0025 BOOST_NORETURN
0026 throw_system_error(
0027 error_code const& ec,
0028 source_location const& loc = BOOST_CURRENT_LOCATION);
0029
0030 BOOST_JSON_DECL
0031 void
0032 BOOST_NORETURN
0033 throw_system_error(
0034 error e,
0035 source_location const* loc);
0036
0037 }
0038 }
0039 }
0040
0041 #endif