ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

debug.cpp File Reference

#include "common/debug.h"
#include "common/debug-channels.h"
#include "common/system.h"
#include "common/textconsole.h"
#include "common/algorithm.h"
#include <stdarg.h>
Include dependency graph for debug.cpp:

Go to the source code of this file.

Namespaces

namespace  Common
 

Internal interface to the QuickTime audio decoder.


Functions

 Common::DECLARE_SINGLETON (DebugManager)
bool debugLevelSet (int level)
 Returns true if the debug level is set to the specified level.
bool debugChannelSet (int level, uint32 debugChannels)
 Returns true if the debug level and channel are active.
static void debugHelper (const char *s, va_list va, bool caret=true)
void debug (const char *s,...)
void debug (int level, const char *s,...)
void debugN (const char *s,...)
void debugN (int level, const char *s,...)
void debugC (int level, uint32 debugChannels, const char *s,...)
void debugCN (int level, uint32 debugChannels, const char *s,...)
void debugC (uint32 debugChannels, const char *s,...)
void debugCN (uint32 debugChannels, const char *s,...)

Variables

int gDebugLevel = -1
 The debug level.
bool gDebugChannelsOnly = false
 Specify if we want to show only the debug channels and suppress the non-channeled output.

Function Documentation

void debug ( const char *  s,
  ... 
)

Definition at line 160 of file debug.cpp.

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

Definition at line 171 of file debug.cpp.

void debugC ( int  level,
uint32  debugChannels,
const char *  s,
  ... 
)

Definition at line 205 of file debug.cpp.

void debugC ( uint32  debugChannels,
const char *  s,
  ... 
)

Definition at line 231 of file debug.cpp.

bool debugChannelSet ( int  level,
uint32  debugChannels 
)

Returns true if the debug level and channel are active.

Parameters:
level debug level to check against. If set to -1, only channel check is active
See also:
enableDebugChannel

Definition at line 137 of file debug.cpp.

void debugCN ( int  level,
uint32  debugChannels,
const char *  s,
  ... 
)

Definition at line 218 of file debug.cpp.

void debugCN ( uint32  debugChannels,
const char *  s,
  ... 
)

Definition at line 244 of file debug.cpp.

static void debugHelper ( const char *  s,
va_list  va,
bool  caret = true 
) [static]

Definition at line 148 of file debug.cpp.

bool debugLevelSet ( int  level  ) 

Returns true if the debug level is set to the specified level.

Definition at line 133 of file debug.cpp.

void debugN ( const char *  s,
  ... 
)

Definition at line 183 of file debug.cpp.

void debugN ( int  level,
const char *  s,
  ... 
)

Definition at line 194 of file debug.cpp.


Variable Documentation

bool gDebugChannelsOnly = false

Specify if we want to show only the debug channels and suppress the non-channeled output.

This option is useful when you want to have higher levels of channels visible without the noise from other subsystems or OSystem.

Definition at line 33 of file debug.cpp.

int gDebugLevel = -1

The debug level.

Initially set to -1, indicating that no debug output should be shown. Positive values usually imply an increasing number of debug output shall be generated, the higher the value, the more verbose the information (although the exact semantics are up to the engines).

Definition at line 32 of file debug.cpp.



Generated on Sat Mar 28 2020 05:01:09 for ResidualVM by doxygen 1.7.1
curved edge   curved edge