mirror of https://github.com/dcoredump/dexed.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
287 B
13 lines
287 B
8 years ago
|
#ifdef DEBUG
|
||
|
#include <stdio.h>
|
||
|
#include <stdarg.h>
|
||
|
void _trace(const char *source, const char *fmt, ...) {
|
||
|
char output[4096];
|
||
|
va_list argptr;
|
||
|
va_start(argptr, fmt);
|
||
|
vsnprintf(output, 4095, fmt, argptr);
|
||
|
va_end(argptr);
|
||
|
printf("%s: %s\n",source,output);
|
||
|
}
|
||
|
#endif
|