#include <stdio.h>
#include <stdarg.h>
#include "pa_debugprint.h"
Defines | |
| #define | VSNPRINTF vsnprintf |
| #define | SIZEDUMP 1024 |
Functions | |
| void | PaUtil_SetDebugPrintFunction (PaUtilLogCallback cb) |
| void | PaUtil_DebugPrint (const char *format,...) |
PaUtil_SetLogPrintFunction can be user called to replace the provided DefaultLogPrint function, which writes to stderr. One can NOT pass var_args across compiler/dll boundaries as it is not "byte code/abi portable". So the technique used here is to allocate a local a static array, write in it, then callback the user with a pointer to its start.
| #define SIZEDUMP 1024 |
| #define VSNPRINTF vsnprintf |
| void PaUtil_DebugPrint | ( | const char * | format, | |
| ... | ||||
| ) |
| void PaUtil_SetDebugPrintFunction | ( | PaUtilLogCallback | cb | ) |
Install user provided log function
1.5.4