(FSM) updateState with unprotected action
authorHans Fugal <fugalh@fb.com>
Mon, 20 Oct 2014 19:07:36 +0000 (12:07 -0700)
committerdcsommer <dcsommer@fb.com>
Wed, 29 Oct 2014 23:02:43 +0000 (16:02 -0700)
commit4c68315cba37cc5704a4627165570cac96c06664
tree26d9c36396496451a6671690db5e655d5121150e
parentaf8be97bb1d79111345082f6627d5b49c1db07dd
(FSM) updateState with unprotected action

Summary:
Like the magic macros. As it says in the comment, this can lead to nicer code.
Also added/moved a couple examples to the top of `test/FSM.cpp`.

Test Plan: new tests

Reviewed By: davejwatson@fb.com

Subscribers: trunkagent, net-systems@, fugalh, exa, njormrod

FB internal diff: D1618184
folly/wangle/detail/FSM.h
folly/wangle/test/FSM.cpp