47 |
|
|
48 |
/* debug level for this library */ |
/* debug level for this library */ |
49 |
#ifdef _DEBUG |
#ifdef _DEBUG |
50 |
#define DPRINTF_LEVEL 0x000000ff |
#ifndef DPRINTF_LEVEL |
51 |
|
#define DPRINTF_LEVEL 0x8000000f |
52 |
|
#endif |
53 |
#else |
#else |
54 |
#define DPRINTF_LEVEL 0 |
#define DPRINTF_LEVEL 0 |
55 |
#endif |
#endif |
136 |
char buf[DPRINTF_BUF_SZ]; |
char buf[DPRINTF_BUF_SZ]; |
137 |
va_start(args, fmt); |
va_start(args, fmt); |
138 |
vsprintf(buf, fmt, args); |
vsprintf(buf, fmt, args); |
139 |
|
strcat(buf,"\n"); |
140 |
OutputDebugString(buf); |
OutputDebugString(buf); |
141 |
fprintf(stderr, "%s\n", buf); |
fputs(buf, stderr); |
142 |
} |
} |
143 |
} |
} |
144 |
# else |
# else |