File indexing completed on 2025-01-18 09:50:10
0001
0002
0003
0004
0005 #ifndef BOOST_PROCESS_V2_DETAIL_THROW_ERROR_HPP
0006 #define BOOST_PROCESS_V2_DETAIL_THROW_ERROR_HPP
0007
0008 #include <boost/process/v2/detail/config.hpp>
0009
0010 BOOST_PROCESS_V2_BEGIN_NAMESPACE
0011 namespace detail
0012 {
0013
0014 BOOST_PROCESS_V2_DECL void do_throw_error(const error_code& err);
0015 BOOST_PROCESS_V2_DECL void do_throw_error(const error_code& err, const char* location);
0016
0017 inline void throw_error(const error_code& err)
0018 {
0019 if (err)
0020 do_throw_error(err);
0021 }
0022
0023 inline void throw_error(const error_code& err, const char* location)
0024 {
0025 if (err)
0026 do_throw_error(err, location);
0027 }
0028
0029 }
0030 BOOST_PROCESS_V2_END_NAMESPACE
0031
0032 #if defined(BOOST_PROCESS_V2_HEADER_ONLY)
0033
0034 #include <boost/process/v2/detail/impl/throw_error.ipp>
0035
0036 #endif
0037
0038 #endif