123456789101112131415161718192021222324252627282930313233 |
- #ifndef BOOST_PROCESS_V2_DETAIL_THROW_ERROR_HPP
- #define BOOST_PROCESS_V2_DETAIL_THROW_ERROR_HPP
- #include <boost/process/v2/detail/config.hpp>
- BOOST_PROCESS_V2_BEGIN_NAMESPACE
- namespace detail
- {
- BOOST_PROCESS_V2_DECL void do_throw_error(const error_code& err);
- BOOST_PROCESS_V2_DECL void do_throw_error(const error_code& err, const char* location);
- inline void throw_error(const error_code& err)
- {
- if (err)
- do_throw_error(err);
- }
- inline void throw_error(const error_code& err, const char* location)
- {
- if (err)
- do_throw_error(err, location);
- }
- }
- BOOST_PROCESS_V2_END_NAMESPACE
- #endif
|