Functions | Variables
debug.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "debug.h"

Go to the source code of this file.

Functions

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

Variables

static int s_debugLevel = 0
 

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

Variable Documentation

int s_debugLevel = 0
static

Definition at line 7 of file debug.cpp.