ZNC  trunk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros
ZNCDebug.h File Reference
#include <znc/zncconfig.h>
#include <znc/ZNCString.h>
#include <sstream>
+ Include dependency graph for ZNCDebug.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  CDebug
class  CDebugStream


#define DEBUG(f)
 Output a debug info if debugging is enabled. More...

Macro Definition Documentation

#define DEBUG (   f)
do { \
if (CDebug::Debug()) { \
CDebugStream sDebug; \
sDebug << f; \
} \
} while (0)
static bool Debug()
Definition: ZNCDebug.h:48

Output a debug info if debugging is enabled.

If ZNC was compiled with –enable-debug or was started with –debug, the given argument will be sent to stdout.

You can use all the features of C++ streams:

DEBUG("I had " << errors << " errors");
fThe expression you want to display.