Skip to content

Commit

Permalink
* fixed GCC builds
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-gresyk committed Jun 3, 2019
1 parent db8c240 commit 4f76895
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 16 deletions.
3 changes: 3 additions & 0 deletions include/hfsm2/detail/structure/composite.inl
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,15 @@ _C<NS, NC, NO, TA, TG, TH, TS...>::deepRequestChange(Control& control,
switch (STRATEGY) {
case RegionStrategy::Composite:
deepRequestChangeComposite (control);
break;

case RegionStrategy::Resumable:
deepRequestChangeResumable (control);
break;

case RegionStrategy::Utilitarian:
deepRequestChangeUtilitarian(control);
break;

default:
HFSM_BREAK();
Expand Down
12 changes: 6 additions & 6 deletions include/hfsm2/detail/structure/composite_sub.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ struct _CS {
HFSM_INLINE void deepRequestChange (Control& control, const ShortIndex = INVALID_SHORT_INDEX);

template <>
HFSM_INLINE void deepRequestChange<Composite> (Control& control, const ShortIndex) { deepRequestChangeComposite (control); }
HFSM_INLINE void deepRequestChange<Composite> (Control& control, const ShortIndex) { deepRequestChangeComposite(control); }

template <>
HFSM_INLINE void deepRequestChange<Resumable> (Control& control, const ShortIndex prong) { deepRequestChangeResumable (control, prong); }
HFSM_INLINE void deepRequestChange<Resumable> (Control& control, const ShortIndex prong) { deepRequestChangeResumable(control, prong); }

#else

Expand Down Expand Up @@ -132,13 +132,13 @@ struct _CS {

#else

HFSM_INLINE UP deepReportChange (Control& control, const ShortIndex = INVALID_SHORT_INDEX);
HFSM_INLINE UP deepReportChange (Control& control, const ShortIndex = INVALID_SHORT_INDEX);

#endif

HFSM_INLINE UP deepReportChangeComposite (Control& control);
HFSM_INLINE UP deepReportChangeResumable (Control& control, const ShortIndex prong);
HFSM_INLINE UP deepReportChangeUtilitarian (Control& control);
HFSM_INLINE UP deepReportChangeComposite (Control& control);
HFSM_INLINE UP deepReportChangeResumable (Control& control, const ShortIndex prong);
HFSM_INLINE UP deepReportChangeUtilitarian (Control& control);

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Expand Down
6 changes: 4 additions & 2 deletions include/hfsm2/detail/structure/composite_sub.inl
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,12 @@ _CS<NS, NC, NO, TA, TG, NI, TS...>::deepRequestChange(Control& control,
{
switch (STRATEGY) {
case RegionStrategy::Composite:
deepRequestChangeComposite (control);
deepRequestChangeComposite(control);
break;

case RegionStrategy::Resumable:
deepRequestChangeResumable (control, prong);
deepRequestChangeResumable(control, prong);
break;

default:
HFSM_BREAK();
Expand Down
21 changes: 13 additions & 8 deletions include/hfsm2/machine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5397,10 +5397,10 @@ struct _CS {
HFSM_INLINE void deepRequestChange (Control& control, const ShortIndex = INVALID_SHORT_INDEX);

template <>
HFSM_INLINE void deepRequestChange<Composite> (Control& control, const ShortIndex) { deepRequestChangeComposite (control); }
HFSM_INLINE void deepRequestChange<Composite> (Control& control, const ShortIndex) { deepRequestChangeComposite(control); }

template <>
HFSM_INLINE void deepRequestChange<Resumable> (Control& control, const ShortIndex prong) { deepRequestChangeResumable (control, prong); }
HFSM_INLINE void deepRequestChange<Resumable> (Control& control, const ShortIndex prong) { deepRequestChangeResumable(control, prong); }

#else

Expand Down Expand Up @@ -5435,13 +5435,13 @@ struct _CS {

#else

HFSM_INLINE UP deepReportChange (Control& control, const ShortIndex = INVALID_SHORT_INDEX);
HFSM_INLINE UP deepReportChange (Control& control, const ShortIndex = INVALID_SHORT_INDEX);

#endif

HFSM_INLINE UP deepReportChangeComposite (Control& control);
HFSM_INLINE UP deepReportChangeResumable (Control& control, const ShortIndex prong);
HFSM_INLINE UP deepReportChangeUtilitarian (Control& control);
HFSM_INLINE UP deepReportChangeComposite (Control& control);
HFSM_INLINE UP deepReportChangeResumable (Control& control, const ShortIndex prong);
HFSM_INLINE UP deepReportChangeUtilitarian (Control& control);

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Expand Down Expand Up @@ -5664,10 +5664,12 @@ _CS<NS, NC, NO, TA, TG, NI, TS...>::deepRequestChange(Control& control,
{
switch (STRATEGY) {
case RegionStrategy::Composite:
deepRequestChangeComposite (control);
deepRequestChangeComposite(control);
break;

case RegionStrategy::Resumable:
deepRequestChangeResumable (control, prong);
deepRequestChangeResumable(control, prong);
break;

default:
HFSM_BREAK();
Expand Down Expand Up @@ -6350,12 +6352,15 @@ _C<NS, NC, NO, TA, TG, TH, TS...>::deepRequestChange(Control& control,
switch (STRATEGY) {
case RegionStrategy::Composite:
deepRequestChangeComposite (control);
break;

case RegionStrategy::Resumable:
deepRequestChangeResumable (control);
break;

case RegionStrategy::Utilitarian:
deepRequestChangeUtilitarian(control);
break;

default:
HFSM_BREAK();
Expand Down

0 comments on commit 4f76895

Please sign in to comment.