aboutsummaryrefslogtreecommitdiff
path: root/build/diagnostics
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-24 10:32:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-24 10:32:50 +0200
commitbb4f9e6498ba715911f83e0dc221a5b1b86baf51 (patch)
tree021007995d476770b6dced459a770712baa8ea72 /build/diagnostics
parent3c57a25a4d6a80301ece82ab33f1394e34f8b873 (diff)
Further test module development
Diffstat (limited to 'build/diagnostics')
-rw-r--r--build/diagnostics13
1 files changed, 11 insertions, 2 deletions
diff --git a/build/diagnostics b/build/diagnostics
index 2eaaa84..b8b1090 100644
--- a/build/diagnostics
+++ b/build/diagnostics
@@ -24,6 +24,8 @@ namespace build
using butl::path;
using butl::dir_path;
+ struct diag_record;
+
// Throw this exception to terminate the build. The handler should
// assume that the diagnostics has already been issued.
//
@@ -78,9 +80,18 @@ namespace build
// nameN arg arg ... nullptr nullptr
//
void
+ print_process (diag_record&, const char* const* args, std::size_t n = 0);
+
+ void
print_process (const char* const* args, std::size_t n = 0);
inline void
+ print_process (diag_record& dr, const cstrings& args)
+ {
+ print_process (dr, args.data (), args.size ());
+ }
+
+ inline void
print_process (const cstrings& args)
{
print_process (args.data (), args.size ());
@@ -112,8 +123,6 @@ namespace build
template <typename> struct diag_prologue;
template <typename> struct diag_mark;
- struct diag_record;
-
typedef void (*diag_epilogue) (const diag_record&);
struct diag_record