diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-01-08 13:27:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-01-08 13:27:15 +0200 |
commit | ab4421747146aa7995f0cfb1a639c9121c82c915 (patch) | |
tree | deb08893c02ed0238f73becbbe80ede5568b946e /build/diagnostics.cxx | |
parent | d3e624ef7c0fb274e62b81c4c7bd59640770520a (diff) |
Implement tracing support
Also use to-relative path translation in diagnostics.
Diffstat (limited to 'build/diagnostics.cxx')
-rw-r--r-- | build/diagnostics.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/build/diagnostics.cxx b/build/diagnostics.cxx new file mode 100644 index 0000000..f213707 --- /dev/null +++ b/build/diagnostics.cxx @@ -0,0 +1,20 @@ +// file : build/diagnostics.cxx -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#include <build/diagnostics> + +#include <iostream> + +using namespace std; + +namespace build +{ + void + print_process (const char* const* args) + { + for (const char* const* p (args); *p != nullptr; p++) + cerr << (p != args ? " " : "") << *p; + cerr << endl; + } +} |