scaffold  1.0.0
Generates files and directories based on templates and user input
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
scaffold_debug.h File Reference

Contains definitions for debugging bbb package. More...

#include <scaffold/scaffold_config.h>
#include <scaffold/scaffold_global.h>
#include <QDebug>

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)
 

Detailed Description

Contains definitions for debugging bbb package.

Date
November 2012
Author
TNick

Macro Definition Documentation

#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)