Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hedzr committed Oct 17, 2021
1 parent 9968338 commit 6b90dff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ namespace fsm_cxx { namespace test {

// event

// Or:
// FSM_DEFINE_EVENT_BEGIN(begin)
// int val{9}
// FSM_DEFINE_EVENT_END()
struct begin : public fsm_cxx::event_type<begin> {
virtual ~begin() {}
int val{9};
Expand All @@ -74,6 +78,8 @@ namespace fsm_cxx { namespace test {
struct open : public fsm_cxx::event_type<open> {
virtual ~open() {}
};
// Or:
// FSM_DEFINE_EVENT(close)
struct close : public fsm_cxx::event_type<close> {
virtual ~close() {}
};
Expand Down

0 comments on commit 6b90dff

Please sign in to comment.