Skip to content

Commit 0007c4e

Browse files
committed
7.1.2
1 parent 18108b4 commit 0007c4e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

qpcpp.qm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12039,9 +12039,12 @@ return curr;</code>
1203912039
//! return with interrupts **disabled**.</documentation>
1204012040
<!--${QXK-extern-C::QXK_contextSw::next}-->
1204112041
<parameter name="next" type="QP::QActive * const"/>
12042-
<code>std::uint8_t const prev_prio = (QXK_attr_.prev != nullptr)
12042+
<code>#ifdef Q_SPY
12043+
std::uint8_t const prev_prio = (QXK_attr_.prev != nullptr)
1204312044
? QXK_attr_.prev-&gt;m_prio
1204412045
: 0U;
12046+
#endif // Q_SPY
12047+
1204512048
std::uint8_t const next_prio = (next != nullptr)
1204612049
? next-&gt;m_prio
1204712050
: QXK_attr_.actPrio;

src/qxk/qxk.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,9 +453,12 @@ QP::QActive * QXK_current() noexcept {
453453
//${QXK-extern-C::QXK_contextSw} .............................................
454454
#if defined(Q_SPY) || defined(QXK_ON_CONTEXT_SW)
455455
void QXK_contextSw(QP::QActive * const next) {
456+
#ifdef Q_SPY
456457
std::uint8_t const prev_prio = (QXK_attr_.prev != nullptr)
457458
? QXK_attr_.prev->m_prio
458459
: 0U;
460+
#endif // Q_SPY
461+
459462
std::uint8_t const next_prio = (next != nullptr)
460463
? next->m_prio
461464
: QXK_attr_.actPrio;

0 commit comments

Comments
 (0)