From bb4f9e6498ba715911f83e0dc221a5b1b86baf51 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 24 Jul 2015 10:32:50 +0200 Subject: Further test module development --- build/diagnostics | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'build/diagnostics') 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 struct diag_prologue; template struct diag_mark; - struct diag_record; - typedef void (*diag_epilogue) (const diag_record&); struct diag_record -- cgit v1.1