Contains definitions for debugging bbb package. More...
Go to the source code of this file.
Macros | |
| #define | CMDT_ENABLE_LOGGING 1 |
| logging is enabled | |
| #define | WAIT_DEBUGGER asm volatile ( "int %3\n" ); |
| #define | BEFORE_DEBUG "\x1b[33;1m" |
| #define | AFTER_DEBUG "\x1b[0m" |
| #define | APRDBG(txt) if (debugEnabled()) qDebug() << BEFORE_DEBUG "DEBUG: " << txt << AFTER_DEBUG |
| #define | APRDBG2(txt1, txt2) if (debugEnabled()) qDebug() << BEFORE_DEBUG "DEBUG: " << txt1 << txt2 << AFTER_DEBUG |
| #define | APRDBG3(txt1, txt2, txt3) if (debugEnabled()) qDebug() << BEFORE_DEBUG "DEBUG: " << txt1 << txt2 << txt3 << AFTER_DEBUG |
| #define | APRDBG_FUNC if (debugEnabled()) APRDBG( __func__ ) |
| #define | APRDBG_CDTOR if (debugEnabled()) APRDBG2( __func__, this ) |
Functions | |
| bool | debugEnabled () |
| void | setDebugEnabled (bool b) |
Contains definitions for debugging bbb package.
| #define APRDBG | ( | txt | ) | if (debugEnabled()) qDebug() << BEFORE_DEBUG "DEBUG: " << txt << AFTER_DEBUG |
macros that intermediate the logging (enabled)
| #define APRDBG2 | ( | txt1, | |
| txt2 | |||
| ) | if (debugEnabled()) qDebug() << BEFORE_DEBUG "DEBUG: " << txt1 << txt2 << AFTER_DEBUG |
macros that intermediate the logging (enabled)
| #define APRDBG3 | ( | txt1, | |
| txt2, | |||
| txt3 | |||
| ) | if (debugEnabled()) qDebug() << BEFORE_DEBUG "DEBUG: " << txt1 << txt2 << txt3 << AFTER_DEBUG |
macros that intermediate the logging (enabled)
| #define APRDBG_CDTOR if (debugEnabled()) APRDBG2( __func__, this ) |
macros that intermediate the logging (enabled)
| #define APRDBG_FUNC if (debugEnabled()) APRDBG( __func__ ) |
macros that intermediate the logging (enabled)