Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
dziegel committed Oct 17, 2024
1 parent dbb5281 commit 923606e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/XmiFsm.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,14 @@ class Transition_8 : public cpp_event_framework::NextSignal<Transition_8, Transi
class Internal : public cpp_event_framework::NextSignal<Internal, Transition_8>
{
};
class SelfTransition : public cpp_event_framework::NextSignal<SelfTransition, Internal>
{
};

using PoolSizeCalculator =
cpp_event_framework::SignalPoolElementSizeCalculator<Transition_1, Transition_2, Transition_3, Transition_4,
Transition_6, Transition_7, Transition_8, Internal>;
Transition_6, Transition_7, Transition_8, Internal,
SelfTransition>;

class IXmiFsmImpl;
using XmiTestBase = cpp_event_framework::Statemachine<IXmiFsmImpl, const cpp_event_framework::Signal::SPtr&>;
Expand Down
4 changes: 4 additions & 0 deletions test/XmiFsmImpl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ void XmiFsmImpl::State1OnEntry()
std::cout << std::source_location::current().function_name() << "\n";
state1_on_entry_called_ = true;
}
void XmiFsmImpl::State1OnExit()
{
std::cout << std::source_location::current().function_name() << "\n";
}
void XmiFsmImpl::State2OnEntry()
{
std::cout << std::source_location::current().function_name() << "\n";
Expand Down
1 change: 1 addition & 0 deletions test/XmiFsmImpl.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ private:

bool state1_on_entry_called_ = false;
void State1OnEntry() override;
void State1OnExit() override;
bool state2_on_entry_called_ = false;
void State2OnEntry() override;
bool state3_on_entry_called_ = false;
Expand Down

0 comments on commit 923606e

Please sign in to comment.