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 {
134
134
static QP::QState initial (DummyActiveObject* const me,
135
135
QP::QEvt const * const )
136
136
{
137
- return Q_TRAN ( &running);
137
+ return me-> tran ( Q_STATE_CAST ( &running) );
138
138
}
139
139
140
140
static QP::QState running (DummyActiveObject* const me,
@@ -143,7 +143,7 @@ class DummyActiveObject : public QP::QActive {
143
143
QP::QState rtn;
144
144
switch (e->sig ) {
145
145
case Q_INIT_SIG:
146
- rtn = Q_SUPER (&top);
146
+ rtn = me-> super (&top);
147
147
break ;
148
148
case Q_ENTRY_SIG: // purposeful fall through
149
149
case Q_EXIT_SIG:
@@ -153,7 +153,7 @@ class DummyActiveObject : public QP::QActive {
153
153
if ((me->m_eventHandler != nullptr ) && (e->sig != 0 )) {
154
154
me->m_eventHandler (e);
155
155
}
156
- rtn = Q_SUPER (&top);
156
+ rtn = me-> super (&top);
157
157
break ;
158
158
}
159
159
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class OrthogonalContainer : public QP::QActive {
78
78
{
79
79
ForEachInTuple (me->m_components ,
80
80
[](auto & component) { component.start (); });
81
- return Q_TRAN ( &running);
81
+ return me-> tran ( Q_STATE_CAST ( &running) );
82
82
}
83
83
84
84
static QP::QState running (OrthogonalContainer* const me,
@@ -102,7 +102,7 @@ class OrthogonalContainer : public QP::QActive {
102
102
rtn = Q_HANDLED ();
103
103
}
104
104
else {
105
- rtn = Q_SUPER (&top);
105
+ rtn = me-> super (&top);
106
106
}
107
107
} break ;
108
108
}
Original file line number Diff line number Diff line change 11
11
#include " qp_config.hpp" // external QP configuration
12
12
#endif
13
13
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
+
14
18
// no-return function specifier (C++11 Standard)
15
19
// removed due to certain cpputest test functions
16
20
#define Q_NORETURN void
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class TestComponent : public OrthogonalComponent {
78
78
79
79
static QP::QState initial (TestComponent* const me, QP::QEvt const * const )
80
80
{
81
- return Q_TRAN ( &running);
81
+ return me-> tran ( Q_STATE_CAST ( &running) );
82
82
}
83
83
84
84
static QP::QState running (TestComponent* const me, QP::QEvt const * const e)
@@ -109,7 +109,7 @@ class TestComponent : public OrthogonalComponent {
109
109
rtn = Q_HANDLED ();
110
110
break ;
111
111
default :
112
- rtn = Q_SUPER (&top);
112
+ rtn = me-> super (&top);
113
113
break ;
114
114
}
115
115
return rtn;
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ class TestComponent : public OrthogonalComponent {
104
104
105
105
static QP::QState initial (TestComponent* const me, QP::QEvt const * const )
106
106
{
107
- return Q_TRAN ( &running);
107
+ return me-> tran ( Q_STATE_CAST ( &running) );
108
108
}
109
109
110
110
static QP::QState running (TestComponent* const me, QP::QEvt const * const e)
@@ -144,7 +144,7 @@ class TestComponent : public OrthogonalComponent {
144
144
rtn = Q_HANDLED ();
145
145
break ;
146
146
default :
147
- rtn = Q_SUPER (&top);
147
+ rtn = me-> super (&top);
148
148
break ;
149
149
}
150
150
return rtn;
You can’t perform that action at this time.
0 commit comments