File tree Expand file tree Collapse file tree 5 files changed +13
-9
lines changed Expand file tree Collapse file tree 5 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ class DummyActiveObject : public QP::QActive {
134134 static QP::QState initial (DummyActiveObject* const me,
135135 QP::QEvt const * const )
136136 {
137- return Q_TRAN ( &running);
137+ return me-> tran ( Q_STATE_CAST ( &running) );
138138 }
139139
140140 static QP::QState running (DummyActiveObject* const me,
@@ -143,7 +143,7 @@ class DummyActiveObject : public QP::QActive {
143143 QP::QState rtn;
144144 switch (e->sig ) {
145145 case Q_INIT_SIG:
146- rtn = Q_SUPER (&top);
146+ rtn = me-> super (&top);
147147 break ;
148148 case Q_ENTRY_SIG: // purposeful fall through
149149 case Q_EXIT_SIG:
@@ -153,7 +153,7 @@ class DummyActiveObject : public QP::QActive {
153153 if ((me->m_eventHandler != nullptr ) && (e->sig != 0 )) {
154154 me->m_eventHandler (e);
155155 }
156- rtn = Q_SUPER (&top);
156+ rtn = me-> super (&top);
157157 break ;
158158 }
159159
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class OrthogonalContainer : public QP::QActive {
7878 {
7979 ForEachInTuple (me->m_components ,
8080 [](auto & component) { component.start (); });
81- return Q_TRAN ( &running);
81+ return me-> tran ( Q_STATE_CAST ( &running) );
8282 }
8383
8484 static QP::QState running (OrthogonalContainer* const me,
@@ -102,7 +102,7 @@ class OrthogonalContainer : public QP::QActive {
102102 rtn = Q_HANDLED ();
103103 }
104104 else {
105- rtn = Q_SUPER (&top);
105+ rtn = me-> super (&top);
106106 }
107107 } break ;
108108 }
Original file line number Diff line number Diff line change 1111 #include " qp_config.hpp" // external QP configuration
1212#endif
1313
14+ #ifndef QP_API_VERSION
15+ #define QP_API_VERSION 700 // cpputest for qpcpp support v7.x.x and v8.x.x
16+ #endif
17+
1418// no-return function specifier (C++11 Standard)
1519// removed due to certain cpputest test functions
1620#define Q_NORETURN void
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class TestComponent : public OrthogonalComponent {
7878
7979 static QP::QState initial (TestComponent* const me, QP::QEvt const * const )
8080 {
81- return Q_TRAN ( &running);
81+ return me-> tran ( Q_STATE_CAST ( &running) );
8282 }
8383
8484 static QP::QState running (TestComponent* const me, QP::QEvt const * const e)
@@ -109,7 +109,7 @@ class TestComponent : public OrthogonalComponent {
109109 rtn = Q_HANDLED ();
110110 break ;
111111 default :
112- rtn = Q_SUPER (&top);
112+ rtn = me-> super (&top);
113113 break ;
114114 }
115115 return rtn;
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ class TestComponent : public OrthogonalComponent {
104104
105105 static QP::QState initial (TestComponent* const me, QP::QEvt const * const )
106106 {
107- return Q_TRAN ( &running);
107+ return me-> tran ( Q_STATE_CAST ( &running) );
108108 }
109109
110110 static QP::QState running (TestComponent* const me, QP::QEvt const * const e)
@@ -144,7 +144,7 @@ class TestComponent : public OrthogonalComponent {
144144 rtn = Q_HANDLED ();
145145 break ;
146146 default :
147- rtn = Q_SUPER (&top);
147+ rtn = me-> super (&top);
148148 break ;
149149 }
150150 return rtn;
You can’t perform that action at this time.
0 commit comments