Main Page   Modules   Compound List   File List   Compound Members   File Members  

Debugging, error processing


Defines

#define XklDebug(level, format, args...)   _XklDebug( __FILE__, __func__, level, format, ## args )

Functions

const char * XklGetLastError (void)
void _XklDebug (const char file[], const char function[], int level, const char format[],...)
void XklSetDebugLevel (int level)

Define Documentation

#define XklDebug level,
format,
args...       _XklDebug( __FILE__, __func__, level, format, ## args )
 

Output (optionally) some debug info

Parameters:
level  is a level of the message
format  is a format (like in printf)
See also:
_XklDebug


Function Documentation

void _XklDebug const char    file[],
const char    function[],
int    level,
const char    format[],
...   
 

Output (optionally) some debug info

Parameters:
file  is the name of the source file. Preprocessor symbol__FILE__ should be used here
function  is a name of the function Preprocessor symbol__func__ should be used here
level  is a level of the message
format  is a format (like in printf)
See also:
XklDebug

const char* XklGetLastError void   
 

Returns:
the text message (statically allocated) of the last error

void XklSetDebugLevel int    level
 

Sets maximum debug level. Message of the level more than the one set here - will be ignored

Parameters:
level  is a new debug level


Generated on Thu May 30 11:39:03 2002 for libxklavier by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002