From 32f153664e7b6cadfb518b83e12b9768a150d709 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 9 Dec 2020 15:10:56 +0300 Subject: Prefix pseudo-builtin diagnostincs messages with their names --- libbuild2/script/timeout.hxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libbuild2/script/timeout.hxx') diff --git a/libbuild2/script/timeout.hxx b/libbuild2/script/timeout.hxx index 9991ad6..4ab43a5 100644 --- a/libbuild2/script/timeout.hxx +++ b/libbuild2/script/timeout.hxx @@ -10,12 +10,13 @@ namespace build2 { // Parse the specified in seconds timeout returning it if the value is not - // zero and nullopt otherwise. Issue diagnostics and fail if the argument is - // not a valid timeout. + // zero and nullopt otherwise. Issue diagnostics with an optional prefix and + // fail if the argument is not a valid timeout. // optional parse_timeout (const string&, const char* what, + const char* prefix = "", const location& = location ()); // As above, but return the timepoint which is away from now by the @@ -24,6 +25,7 @@ namespace build2 optional parse_deadline (const string&, const char* what, + const char* prefix = "", const location& = location ()); // Return the earlier timeout/deadline of two values, if any is present. -- cgit v1.1