浏览代码

Fix missing parameter in DEFINE_STATE_MACHINE_TRANSITION_GUARD_true macro

Eric Ramat 1 年之前
父节点
当前提交
d712fe2c71
共有 1 个文件被更改,包括 1 次插入1 次删除
  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