debug.cpp
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <stdarg.h>
4 
5 #include "debug.h"
6 
7 static int s_debugLevel = 0;
8 
9 void debug(int level,const char *msg,...)
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 }
19 
21 {
23 }
24 
void setDebugLevel(int level)
Definition: debug.cpp:20
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 debug(int level, const char *msg,...)
Definition: debug.cpp:9