aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/parser.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-06-16 23:43:24 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-06-19 12:57:24 +0300
commit062e03325cf9bb7fecfb9ea254ceb5c0cf427a7a (patch)
treec9e29b96a4ae919dcd99541d38e191c7fe20c7b1 /build2/test/script/parser.hxx
parent4c2243f8c790207c0ee4119fcb081b69f06f476e (diff)
Add support for exit testscript builtin
Diffstat (limited to 'build2/test/script/parser.hxx')
-rw-r--r--build2/test/script/parser.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/build2/test/script/parser.hxx b/build2/test/script/parser.hxx
index 21ea61a..4c666f5 100644
--- a/build2/test/script/parser.hxx
+++ b/build2/test/script/parser.hxx
@@ -183,7 +183,12 @@ namespace build2
void
exec_scope_body ();
- void
+ // Return false if the execution of the scope should be terminated
+ // with the success status (e.g., as a result of encountering the exit
+ // builtin). For unsuccessful termination the failed exception should
+ // be thrown.
+ //
+ bool
exec_lines (lines::iterator, lines::iterator, size_t&, command_type);
// Customization hooks.