kiishor/UML-State-Machine-in-C

traverse_state Entry

Closed this issue · 1 comments

On this code:

  // Call Exit function before leaving the Source state.
    EXECUTE_HANDLER(pSource_State->Exit, triggered_to_self, pState_Machine);
  // Call entry function before entering the target state.
    EXECUTE_HANDLER(pTarget_State->Entry, triggered_to_self, pState_Machine);

    // Now traverse down to the target node & call their entry functions.
    while(index)
    {
      index--;
      EXECUTE_HANDLER(pTarget_Path[index]->Entry, triggered_to_self, pState_Machine);
    }

Does it mean that Target Entry runs first than the path Entries? Is this expected or the other way: first path Entries and at last the target Entry?

This is the same question as #16 and it was not a bug.