Skip to content

Commit

Permalink
implement ecto::BREAK behavior
Browse files Browse the repository at this point in the history
This patch makes ecto schedule the next iteration
through the plasm with ecto::BREAK as discussed in
plasmodic#251
  • Loading branch information
Michael Görner committed Aug 31, 2015
1 parent 503424d commit 2759c31
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib/scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,16 +219,14 @@ void scheduler::execute_iter(unsigned cur_iter, unsigned num_iters,
}

switch (retval) {
case ecto::BREAK:
// unimplemented (move to default) -> https://github.com/plasmodic/ecto/issues/251

case ecto::CONTINUE:
// unimplemented (move to default) -> https://github.com/plasmodic/ecto/issues/251

case ecto::BREAK:
case ecto::OK:
{
++stack_idx;
if (stack_.size() <= stack_idx) {
if (stack_.size() <= stack_idx || retval == ecto::BREAK) {
stack_idx = 0;
++cur_iter;

Expand Down

0 comments on commit 2759c31

Please sign in to comment.