|
79 | 79 | _qCR_Oper_t; // skipcq: CXX-E2000 |
80 | 80 |
|
81 | 81 | /*Construction statements*/ |
82 | | - #define _qCR_LCInit /* skipcq: CXX-E2000 */\ |
| 82 | + // skipcq: CXX-E2000 |
| 83 | + #define _qCR_LCInit \ |
83 | 84 | { _qCR_PC_INIT_VAL, _qCR_UNDEFINED, QSTIMER_INITIALIZER } \ |
84 | 85 |
|
85 | | - #define _qCR_RT( _PT_ ) /* skipcq: CXX-E2000 */ \ |
| 86 | + // skipcq: CXX-E2000 |
| 87 | + #define _qCR_RT( _PT_ ) \ |
86 | 88 | case (_qCR_TaskPC_t)(_PT_) : \ |
87 | 89 |
|
88 | 90 | #define _qCR_JUMP( _DST_ ) switch (_DST_) // skipcq: CXX-W1164 |
|
94 | 96 |
|
95 | 97 | #define _qCR_EXIT goto _qCR_ExitPoint // skipcq: CXX-E2000 |
96 | 98 |
|
97 | | - #define _qCR_DEF /* skipcq: CXX-E2000 */\ |
| 99 | + // skipcq: CXX-E2000 |
| 100 | + #define _qCR_DEF \ |
98 | 101 | static _qCR_Instance_t _qCRState = _qCR_LCInit; \ |
99 | 102 | _qCR_Instance_t * const _qcr = &_qCRState \ |
100 | 103 |
|
|
103 | 106 | /*! @cond */ |
104 | 107 | /*Core Statements*/ |
105 | 108 | /*=======================================================================*/ |
106 | | - #define _qCR_Start /* skipcq: CXX-E2000 */\ |
| 109 | + // skipcq: CXX-E2000 |
| 110 | + #define _qCR_Start \ |
107 | 111 | _qCR_DEF; \ |
108 | 112 | _qCR_JUMP( _qcr->instr ) { /* skipcq: CXX-W1197 */\ |
109 | 113 | _qCR_RT( _qCR_PC_INIT_VAL ) \ |
110 | 114 |
|
111 | 115 |
|
112 | 116 | /*=======================================================================*/ |
113 | | - #define _qCR_hStart( handle ) /* skipcq: CXX-E2000 */\ |
| 117 | + // skipcq: CXX-E2000 |
| 118 | + #define _qCR_hStart( handle ) \ |
114 | 119 | _qCR_DEF; \ |
115 | 120 | if ( NULL == (handle) ) { \ |
116 | 121 | (handle) = &_qCRState; \ |
|
120 | 125 | _qCR_RT( _qCR_PC_INIT_VAL ) \ |
121 | 126 |
|
122 | 127 | /*=======================================================================*/ |
123 | | - #define _qCR_Dispose /* skipcq: CXX-E2000 */\ |
| 128 | + // skipcq: CXX-E2000 |
| 129 | + #define _qCR_Dispose \ |
124 | 130 | _qcr->instr = _qCR_PC_INIT_VAL; \ |
125 | 131 | } \ |
126 | 132 | _qCR_ExitPoint: Q_UNUSED(0) \ |
127 | 133 |
|
128 | 134 |
|
129 | 135 | /*=======================================================================*/ |
130 | | - #define _qCR_Yield /* skipcq: CXX-E2000 */\ |
| 136 | + // skipcq: CXX-E2000 |
| 137 | + #define _qCR_Yield \ |
131 | 138 | do { \ |
132 | 139 | _qCR_LCON( _qcr->instr, __LINE__, _qCR_RT(__LINE__), _qCR_EXIT ); \ |
133 | 140 | } while ( qFalse ) \ |
134 | 141 |
|
135 | 142 |
|
136 | 143 | /*=======================================================================*/ |
137 | | - #define _qCR_Restart /* skipcq: CXX-E2000 */\ |
| 144 | + // skipcq: CXX-E2000 |
| 145 | + #define _qCR_Restart \ |
138 | 146 | do { \ |
139 | 147 | _qCR_LCON( _qcr->instr, _qCR_PC_INIT_VAL, Q_NONE, _qCR_EXIT ); \ |
140 | 148 | } while ( qFalse ) \ |
141 | 149 |
|
142 | 150 |
|
143 | 151 | /*=======================================================================*/ |
144 | | - #define _qCR_wu_Assert( condition ) /* skipcq: CXX-E2000 */\ |
| 152 | + // skipcq: CXX-E2000 |
| 153 | + #define _qCR_wu_Assert( condition ) \ |
145 | 154 | do { \ |
146 | 155 | _qCR_LCON( _qcr->instr, __LINE__, _qCR_RT(__LINE__), Q_UNUSED(0) ); \ |
147 | 156 | if ( !(condition) ) { \ |
|
151 | 160 |
|
152 | 161 |
|
153 | 162 | /*=======================================================================*/ |
154 | | - #define _qCR_GetPosition( position ) /* skipcq: CXX-E2000 */\ |
| 163 | + // skipcq: CXX-E2000 |
| 164 | + #define _qCR_GetPosition( position ) \ |
155 | 165 | do { \ |
156 | 166 | _qCR_LCON( position, __LINE__, _qCR_RT(__LINE__), Q_UNUSED(0) ); \ |
157 | 167 | Q_UNUSED( (position) ); \ |
158 | 168 | } while ( qFalse ) \ |
159 | 169 |
|
160 | 170 |
|
161 | 171 | /*=======================================================================*/ |
162 | | - #define _qCR_RestoreFromPosition( position ) /* skipcq: CXX-E2000 */\ |
| 172 | + // skipcq: CXX-E2000 |
| 173 | + #define _qCR_RestoreFromPosition( position ) \ |
163 | 174 | do { \ |
164 | 175 | _qCR_LCON( _qcr->instr, (position), Q_NONE, _qCR_EXIT ); \ |
165 | 176 | } while ( qFalse ) \ |
166 | 177 |
|
167 | 178 |
|
168 | 179 | /*=======================================================================*/ |
169 | | - #define _qCR_Delay( dTime ) /* skipcq: CXX-E2000 */\ |
| 180 | + // skipcq: CXX-E2000 |
| 181 | + #define _qCR_Delay( dTime ) \ |
170 | 182 | do { \ |
171 | 183 | qCR_TimeoutSet( dTime ); \ |
172 | 184 | _qCR_LCON( _qcr->instr, __LINE__, _qCR_RT(__LINE__), Q_UNUSED(0) ); \ |
|
177 | 189 |
|
178 | 190 |
|
179 | 191 | /*=======================================================================*/ |
180 | | - #define _qCR_wu_TmrAssert( condition, timeout ) /* skipcq: CXX-E2000 */\ |
| 192 | + // skipcq: CXX-E2000 |
| 193 | + #define _qCR_wu_TmrAssert( condition, timeout ) \ |
181 | 194 | do { \ |
182 | 195 | qCR_TimeoutSet( timeout ); \ |
183 | 196 | _qCR_LCON( _qcr->instr, __LINE__, _qCR_RT(__LINE__), Q_UNUSED(0) ); \ |
|
188 | 201 |
|
189 | 202 |
|
190 | 203 | /*=======================================================================*/ |
191 | | - #define _qCR_do /* skipcq: CXX-E2000 */\ |
| 204 | + // skipcq: CXX-E2000 |
| 205 | + #define _qCR_do \ |
192 | 206 | do { \ |
193 | 207 | _qCR_LCON( _qcr->instr, __LINE__, _qCR_RT(__LINE__), Q_UNUSED(0) ); \ |
194 | 208 |
|
195 | 209 |
|
196 | 210 | /*=======================================================================*/ |
197 | | - #define _qCR_until( condition ) /* skipcq: CXX-E2000 */\ |
| 211 | + // skipcq: CXX-E2000 |
| 212 | + #define _qCR_until( condition ) \ |
198 | 213 | if ( !(condition) ) { \ |
199 | 214 | _qCR_EXIT; \ |
200 | 215 | } \ |
|
0 commit comments