From 61377c582e0f2675baa5f5e6e30a35d1a4164b33 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 1 May 2017 16:08:43 +0300 Subject: Add hxx extension for headers and lib prefix for library dir --- libbutl/process-io.hxx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 libbutl/process-io.hxx (limited to 'libbutl/process-io.hxx') diff --git a/libbutl/process-io.hxx b/libbutl/process-io.hxx new file mode 100644 index 0000000..b70080c --- /dev/null +++ b/libbutl/process-io.hxx @@ -0,0 +1,28 @@ +// file : libbutl/process-io.hxx -*- C++ -*- +// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef LIBBUTL_PROCESS_IO_HXX +#define LIBBUTL_PROCESS_IO_HXX + +#include + +#include + +namespace butl +{ + inline std::ostream& + operator<< (std::ostream& o, const process_path& p) + { + return o << p.recall_string (); + } + + inline std::ostream& + operator<< (std::ostream& o, const process_args& a) + { + process::print (o, a.argv, a.argc); + return o; + } +} + +#endif // LIBBUTL_PROCESS_IO_HXX -- cgit v1.1