// // boost/process/v2/default_launcher.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2022 Klemens D. Morgenstern (klemens dot morgenstern at gmx dot net) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOST_PROCESS_V2_DEFAULT_LAUNCHER_HPP #define BOOST_PROCESS_V2_DEFAULT_LAUNCHER_HPP #include #if defined(BOOST_PROCESS_V2_WINDOWS) #include #else #if defined(BOOST_PROCESS_V2_PDFORK) #include #else #include #endif #endif BOOST_PROCESS_V2_BEGIN_NAMESPACE #if defined(GENERATING_DOCUMENTATION) /// The default launcher for processes. /** This launcher will be used by process if a * process is launched through the constructor: * * @code {.cpp} * process proc("test", {}); * // equivalent to * process prod = default_launcher()("test", {}); * @endcode * */ typedef implementation_defined default_process_launcher; #else #if defined(BOOST_PROCESS_V2_WINDOWS) typedef windows::default_launcher default_process_launcher; #else #if defined(BOOST_PROCESS_V2_PDFORK) typedef posix::pdfork_launcher default_process_launcher; #else typedef posix::default_launcher default_process_launcher; #endif #endif #endif BOOST_PROCESS_V2_END_NAMESPACE #if defined(BOOST_PROCESS_V2_HEADER_ONLY) #include #endif #endif //BOOST_PROCESS_V2_DEFAULT_LAUNCHER_HPP