Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:38:59

0001 //
0002 // Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 // Official repository: https://github.com/boostorg/json
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 } // detail
0038 } // namespace json
0039 } // namespace boost
0040 
0041 #endif