Functions
debug.h File Reference

Go to the source code of this file.

Functions

void debug (int level, const char *msg,...)
 
void setDebugLevel (int level)
 

Function Documentation

void debug ( int  level,
const char *  msg,
  ... 
)

Definition at line 9 of file debug.cpp.

10 {
11  if (level<=s_debugLevel)
12  {
13  va_list args;
14  va_start(args, msg);
15  vfprintf(stderr, msg, args);
16  va_end(args);
17  }
18 }
void msg(const char *fmt,...)
Definition: message.cpp:107
static QCString args
Definition: declinfo.cpp:674
static int s_debugLevel
Definition: debug.cpp:7
void setDebugLevel ( int  level)

Definition at line 20 of file debug.cpp.

21 {
23 }
static int s_debugLevel
Definition: debug.cpp:7