Skip to content

Commit

Permalink
Make Start() an inline function
Browse files Browse the repository at this point in the history
  • Loading branch information
dziegel committed Jun 20, 2024
1 parent f3a0854 commit 864a704
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion generator/src/generator/Declaration.egl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public:
%]
[%=regionTemplate.process()%]

void Start()
inline void Start()
{
[%=statemachine.name%]Base::Start(&[%=statemachine.region.initial_variable_name%]);
}
Expand Down
2 changes: 1 addition & 1 deletion test/generated/IScXmlTestImpl.hxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Statemachine ScXmlTest implementation interface
// Generated: 20.06.24, 10:59
// Generated: 20.06.24, 11:05

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion test/generated/IXmiTestImpl.hxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Statemachine XmiTest implementation interface
// Generated: 20.06.24, 10:59
// Generated: 20.06.24, 11:05

#pragma once

Expand Down
4 changes: 2 additions & 2 deletions test/generated/ScXmlTestDeclaration.hxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Statemachine ScXmlTest declaration
// Generated: 20.06.24, 10:59
// Generated: 20.06.24, 11:05

#pragma once

Expand All @@ -25,7 +25,7 @@ class ScXmlTest final : public ScXmlTestBase
// State State_1::State_4::State_6
static const State kState_1State_4State_6;

void Start()
inline void Start()
{
ScXmlTestBase::Start(&kState_1);
}
Expand Down
2 changes: 1 addition & 1 deletion test/generated/ScXmlTestInstance.hxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Statemachine ScXmlTest instance
// Generated: 20.06.24, 10:59
// Generated: 20.06.24, 11:05

#pragma once

Expand Down
4 changes: 2 additions & 2 deletions test/generated/XmiTestDeclaration.hxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Statemachine XmiTest declaration
// Generated: 20.06.24, 10:59
// Generated: 20.06.24, 11:05

#pragma once

Expand All @@ -25,7 +25,7 @@ class XmiTest final : public XmiTestBase
// State State_1::State_4::State_5
static const State kState_1State_4State_5;

void Start()
inline void Start()
{
XmiTestBase::Start(&kState_1);
}
Expand Down
2 changes: 1 addition & 1 deletion test/generated/XmiTestInstance.hxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Statemachine XmiTest instance
// Generated: 20.06.24, 10:59
// Generated: 20.06.24, 11:05

#pragma once

Expand Down

0 comments on commit 864a704

Please sign in to comment.