From 67617fc444600cad5de2338f4d6f49d7a46fd915 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 12 Feb 2020 13:54:40 +0200 Subject: Add convenience run_start() overload --- libbuild2/utility.hxx | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'libbuild2/utility.hxx') diff --git a/libbuild2/utility.hxx b/libbuild2/utility.hxx index 50af5e6..18122e0 100644 --- a/libbuild2/utility.hxx +++ b/libbuild2/utility.hxx @@ -293,7 +293,20 @@ namespace build2 const location& = location ()); inline process - run_start (const process_env& pe, // Implicit-constructible from process_path. + run_start (uint16_t verbosity, + const process_env& pe, + cstrings& args, + int in, + int out, + bool error = true, + const dir_path& cwd = dir_path (), + const location& l = location ()) + { + return run_start (verbosity, pe, args.data (), in, out, error, cwd, l); + } + + inline process + run_start (const process_env& pe, const char* args[], int in, int out, @@ -304,6 +317,18 @@ namespace build2 return run_start (verb_never, pe, args, in, out, error, cwd, l); } + inline process + run_start (const process_env& pe, + cstrings& args, + int in, + int out, + bool error = true, + const dir_path& cwd = dir_path (), + const location& l = location ()) + { + return run_start (pe, args.data (), in, out, error, cwd, l); + } + inline void run (const process_path& p, const char* args[], -- cgit v1.1