Home Download Musics Developers
API Sources Tools File Format Technicals

Debug messages
[file68 library documentation.]


Detailed Description

Provides functions for debugging message.


Files

file  debugmsg68.h
 debug message header.


Typedefs

typedef void(* debugmsg68_t )(void *cookie, const char *fmt, va_list list)
 Debug handler type.


Functions

debugmsg68_t debugmsg68_set_handler (debugmsg68_t handler)
 Set debug function.

void * debugmsg68_set_cookie (void *cookie)
 Set debug function user parameter.

void debugmsg68 (const char *fmt,...)
 Print debug message.

void vdebugmsg68 (const char *fmt, va_list list)
 Print debug message (variable argument).

void SC68os_pdebug (const char *fmt,...)
 Wrapper for debugmsg68().


Function Documentation

debugmsg68_t debugmsg68_set_handler debugmsg68_t  handler  ) 
 

Set debug function.

Parameters:
handler pointer to a function to display debug messages (0 desactive debug message).
Returns:
previous handler

void* debugmsg68_set_cookie void *  cookie  ) 
 

Set debug function user parameter.

Parameters:
cookie user parameter that will be sent as first parameter to the debug handler.
See also:
debugmsg68_set_handler();

void debugmsg68 const char *  fmt,
... 
 

Print debug message.

Parameters:
fmt printf() like format string.

void vdebugmsg68 const char *  fmt,
va_list  list
 

Print debug message (variable argument).

Parameters:
fmt printf() like format string.
list variable argument list (stdarg.h)

void SC68os_pdebug const char *  fmt,
... 
 

Wrapper for debugmsg68().

Parameters:
fmt printf() like format string.

Deprecated:
Use debugmsg68() instead.