Parent Directory | Revision Log | Patch
revision 1.1, Sat Jan 31 13:44:33 2004 UTC | revision 1.2, Mon Mar 22 22:36:23 2004 UTC | |
---|---|---|
# | Line 0 | Line 1 |
1 | #ifndef _DSHOW_DEBUG_ | |
2 | #define _DSHOW_DEBUG_ | |
3 | ||
4 | #ifdef _DEBUG | |
5 | #include <stdio.h> /* vsprintf */ | |
6 | #define DPRINTF_BUF_SZ 1024 | |
7 | static __inline void | |
8 | DPRINTF(char *fmt, ...) | |
9 | { | |
10 | va_list args; | |
11 | char buf[DPRINTF_BUF_SZ]; | |
12 | ||
13 | va_start(args, fmt); | |
14 | vsprintf(buf, fmt, args); | |
15 | OutputDebugString(buf); | |
16 | } | |
17 | #else | |
18 | static __inline void | |
19 | DPRINTF(char *fmt, ...) { } | |
20 | #endif | |
21 | ||
22 | ||
23 | #endif /* _DSHOW_DEBUG */ |
|
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |