xprintf d727b10
xdebugchannel.h File Reference

Debug routines. More...

Functions

void debug_setChannel (struct xprintf_channel *channel)
 Sets (changes) the channel for debugging.
struct xprintf_channel * debug_getChannel (void)
 Returns the current debugging channel.

Detailed Description

Debug routines.

For convenience, debugchannel.h also causes an include of debug.h, xstrerror.h and errnocode.h.

Debugging disabled

If flagged to disable debug calls, this module provides dummy static inline bodies for the debug functions so that compile-time checks are still done but no code is generated.

See also:
Debugging enable/disable

Function Documentation

struct xprintf_channel* debug_getChannel ( void  ) [read]

Returns the current debugging channel.

Returns:
pointer to debug channel, null will skip debug output
void debug_setChannel ( struct xprintf_channel *  channel)

Sets (changes) the channel for debugging.

Parameters:
channelpointer to new debug channel, null will skip debug output