diff options
Diffstat (limited to 'libbuild2/parser.hxx')
-rw-r--r-- | libbuild2/parser.hxx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/libbuild2/parser.hxx b/libbuild2/parser.hxx index 5f762f7..c59b90e 100644 --- a/libbuild2/parser.hxx +++ b/libbuild2/parser.hxx @@ -190,10 +190,12 @@ namespace build2 using adhoc_names = small_vector<adhoc_names_loc, 1>; - void + vector<reference_wrapper<target>> enter_adhoc_members (adhoc_names_loc&&, bool); - small_vector<reference_wrapper<target>, 1> + small_vector<pair<reference_wrapper<target>, // Target. + vector<reference_wrapper<target>>>, // Ad hoc members. + 1> enter_targets (names&&, const location&, adhoc_names&&, size_t, @@ -772,6 +774,16 @@ namespace build2 } void + replay_skip () + { + assert (replay_ == replay::play); + + assert (!peeked_); + + replay_i_ = replay_data_.size () - 1; + } + + void replay_stop (bool verify = true) { if (verify) |