xoreos  0.0.5
Functions
debug.h File Reference

Utility functions for debug output. More...

#include "src/common/system.h"
#include "src/common/types.h"
#include "src/common/debugman.h"
Include dependency graph for debug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void debugC (Common::DebugChannel channel, uint32 level, const char *s,...) GCC_PRINTF(3
 Print a debug message, but only if the current debug level is at least the specified level for the specified channel. More...
 
void void debugCN (Common::DebugChannel channel, uint32 level, const char *s,...) GCC_PRINTF(3
 Print a debug message, but only if the current debug level is at least the specified level for the specified channel. More...
 

Detailed Description

Utility functions for debug output.

Definition in file debug.h.

Function Documentation

◆ debugC()

void debugC ( Common::DebugChannel  channel,
uint32  level,
const char *  s,
  ... 
)

Print a debug message, but only if the current debug level is at least the specified level for the specified channel.

Automatically appends a newline.

The debug message is printed to both stderr and the global log file (if a global log file has been opened). See Common::DebugManager for details.

◆ debugCN()

void void debugCN ( Common::DebugChannel  channel,
uint32  level,
const char *  s,
  ... 
)

Print a debug message, but only if the current debug level is at least the specified level for the specified channel.

Doesn't automatically append a newline.

The debug message is printed to both stderr and the global log file (if a global log file has been opened). See Common::DebugManager for details.