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 150 of file debug.cpp.

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

Definition at line 161 of file debug.cpp.

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

Definition at line 195 of file debug.cpp.

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

Definition at line 221 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 127 of file debug.cpp.

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

Definition at line 208 of file debug.cpp.

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

Definition at line 234 of file debug.cpp.

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

Definition at line 138 of file debug.cpp.

bool debugLevelSet ( int  level  ) 

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

Definition at line 123 of file debug.cpp.

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

Definition at line 173 of file debug.cpp.

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

Definition at line 184 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 Jul 13 2019 05:01:39 for ResidualVM by doxygen 1.7.1
curved edge   curved edge