Go to the documentation of this file.
   19 #ifndef __APRIL_DEBUG_INC__ 
   20 #define __APRIL_DEBUG_INC__ 
   29 #include    <april/april_config.h> 
   82 #ifndef ENABLE_LOGGING 
   86 #       define  ENABLE_LOGGING  1 
   91 #       define  ENABLE_LOGGING  0 
  100 #ifndef IS_APRIL_DEBUG_ID_ALLOWED 
  103 #   define  IS_APRIL_DEBUG_ID_ALLOWED( id ) false 
  109 #   define APRDBG(id,txt)   \ 
  110     if ( IS_APRIL_DEBUG_ID_ALLOWED( id ) ) \ 
  111     qDebug() << april::debugName(id) << ": " << txt 
  112 #   define APRDBG2(id,txt1,txt2)    \ 
  113     if ( IS_APRIL_DEBUG_ID_ALLOWED( id ) ) \ 
  114     qDebug() << april::debugName(id) << ": " << txt1 << txt2 
  115 #   define APRDBG3(id,txt1,txt2,txt3)   \ 
  116     if ( IS_APRIL_DEBUG_ID_ALLOWED( id ) ) \ 
  117     qDebug() << april::debugName(id) << ": " << txt1 << txt2 << txt3 
  118 #   define APRDBG_FUNC(id)  APRDBG(id, __func__ ) 
  119 #   define APRDBG_CDTOR     APRDBG2(APRDBG_CTORDTOR, __func__, this ) 
  126 #   define APRDBG(id,txt) 
  127 #   define APRDBG2(id,txt1,txt2) 
  128 #   define APRDBG3(id,txt1,txt2,txt3) 
  129 #   define APRDBG_FUNC(id) 
  130 #   define APRDBG_CDTOR 
  167 #endif // __APRIL_DEBUG_INC__