matthewp / librobot

C library for creating Finite State Machines with Statecharts support
5 stars 0 forks source link

Support invoke #7

Open matthewp opened 4 years ago

matthewp commented 4 years ago
  Machine crosswalk = rbt_machine(

  )

  Machine machine = rbt_machine(
    (State[]) {
      rbt_invoke(crosswalk, (Transition[] {
        rbt_transition("done", "success")
      }, 1)
    },
  1);
matthewp commented 4 years ago

Branch: https://github.com/matthewp/librobot/tree/invoke