under progress...
- add
autofsm.h
to your project, then just#include
it. - init the machine:
- use
class YourObj
,State<YourObj>
and all thefunc_reg()
s to init the machine. - use
class YourObj
,Machine<YourObj>(states, transitions)
and all thefunc_reg()
s to init the machine. - use macro
fsm::make_machine()
to init the machine fastest.
- use
machine.process()
inwhile(true)
.