qpcpp/doxygen/snippets/qs_user.cpp
Quantum Leaps 890c8e7d8c 5.1.1
2013-10-10 20:01:51 -04:00

16 lines
359 B
C++

#ifdef Q_SPY
enum {
PHILO_STAT = QP::QS_USER
};
. . .
#endif
void BSP_displayPhilStat(uint8_t n, char const *stat) {
. . .
QS_BEGIN(PHILO_STAT, AO_Philo[n]) // application-specific record begin
QS_U8(1, n); // Philosopher number
QS_STR(stat); // Philosopher status
QS_END()
}