mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-17 17:36:33 +08:00
In order to work properly, states with no change need to return ifsm_state::NO_CHANGE rather than their given state id. Otherwise, when an event isn't handled, it will return the parent state rather than the active state. Also, in this implementation, a state cannot return a different state during the on_enter_state() function. An assert has been added to check for that. |
||
|---|---|---|
| .. | ||
| etl | ||