This example shows forwarding debug information through a chain of routines.
In this example, the debug information is passed to the logging system. This allows logging to blame the user application for allocations, releases, locks, etc...
This example uses the void argument macros
void SimpleFunction( DBG_VOIDPASS ) { // this function usually has (void) parameters. } void f( void ) { SimpleFunction( DBG_VOIDSRC ); }