Parent Directory | Revision Log | Patch
revision 1.1, Sat Apr 12 06:58:50 2003 UTC | revision 1.1.2.1, Sat Apr 12 06:58:50 2003 UTC | |
---|---|---|
# | Line 0 | Line 1 |
1 | #ifndef _DEBUG_H_ | |
2 | #define _DEBUG_H_ | |
3 | ||
4 | #if defined(_DEBUG) | |
5 | #include <stdio.h> /* vsprintf */ | |
6 | #define DPRINTF_BUF_SZ 1024 | |
7 | static __inline void DPRINTF(char *fmt, ...) | |
8 | { | |
9 | va_list args; | |
10 | char buf[DPRINTF_BUF_SZ]; | |
11 | ||
12 | va_start(args, fmt); | |
13 | vsprintf(buf, fmt, args); | |
14 | OutputDebugString(buf); | |
15 | } | |
16 | #else | |
17 | static __inline void DPRINTF(char *fmt, ...) { } | |
18 | #endif | |
19 | ||
20 | #endif _DEBUG_H_ |
|
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |