blob: dfd222137a69e11d64babc9623a79d3d2cbeebb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// file : libbutl/process-io.mxx -*- C++ -*-
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
#ifndef __cpp_modules
#pragma once
#endif
// C includes.
#ifndef __cpp_lib_modules
#include <ostream>
#endif
// Other includes.
#ifdef __cpp_modules
export module butl.process_io;
#ifdef __cpp_lib_modules
import std.core; //@@ MOD TMP (should not be needed).
import std.io;
#endif
import butl.process;
#else
#include <libbutl/process.mxx>
#endif
#include <libbutl/export.hxx>
LIBBUTL_MODEXPORT 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;
}
}
|