Browse Source

Fix missing parameter in DEFINE_STATE_MACHINE_TRANSITION_GUARD_true macro

Eric Ramat 1 year ago
parent
commit
d712fe2c71
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/StateMachine.hpp

+ 1 - 1
src/utils/StateMachine.hpp

@@ -365,7 +365,7 @@ protected:
 #define DEFINE_STATE_MACHINE_TRANSITION_ACTION_false
 #define DEFINE_STATE_MACHINE_TRANSITION_EVENT_true bool event(const artis::traffic::core::Time & /* t */, int event) override;
 #define DEFINE_STATE_MACHINE_TRANSITION_EVENT_false
-#define DEFINE_STATE_MACHINE_TRANSITION_GUARD_true bool guard(const artis::traffic::core::Time & /* t */) const override;
+#define DEFINE_STATE_MACHINE_TRANSITION_GUARD_true bool guard(const artis::traffic::core::Time & /* t */, const artis::common::event::Value & /* value */) const override;
 #define DEFINE_STATE_MACHINE_TRANSITION_GUARD_false
 #define DEFINE_STATE_MACHINE_TRANSITION_NO_EVENT_true bool no_event() const override { return true; }
 #define DEFINE_STATE_MACHINE_TRANSITION_NO_EVENT_false