gv_fsm 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/templates.rb +3 -1
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0782e93cbf0e08c4303d44dc04009aef716f2f507afc5973974bad03522aaa68'
|
4
|
+
data.tar.gz: 518998f197d1387c5a0fc11f5eab9fafa24d55712108d92289f8f69a9d02da5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 074f68593e58f11e80c4a8c93306796cdef2f61d52b5489a60efc6e6ea229f02e2e81e59bc0b30c5aba2bdf148d7ce6a1502a64588c37f60d25110ec77d44c57
|
7
|
+
data.tar.gz: 7f662ded03c0eecafb6e2e6c84a94ec3cbe501458e1a9e5a8bf6446aa96ff25da4d6692392f59f51c0f611770d12dd0caebd279bb0beab40acef0e3bf02f286e
|
data/lib/templates.rb
CHANGED
@@ -460,7 +460,9 @@ public:
|
|
460
460
|
|
461
461
|
// Setup initial state links
|
462
462
|
void setup(state_t state) {
|
463
|
+
<% if sigint then -%>
|
463
464
|
<%= ns %>::<%= self.sigint %>_requested = false;
|
465
|
+
<% end %>
|
464
466
|
_state.first = state;
|
465
467
|
_state.second = state;
|
466
468
|
}
|
@@ -468,9 +470,9 @@ public:
|
|
468
470
|
// Evaluate the current state and update the next state
|
469
471
|
// to be used when main loop is customized (i.e., not using FSM::run())
|
470
472
|
state_t eval_state() {
|
471
|
-
(*this)(_state.first, _state.second);
|
472
473
|
_state.first = _state.second;
|
473
474
|
_state.second = (*this)(_state.second);
|
475
|
+
(*this)(_state.first, _state.second);
|
474
476
|
return _state.second;
|
475
477
|
}
|
476
478
|
|
data/lib/version.rb
CHANGED