[svn] / trunk / xvidcore / dshow / src / debug.h Repository:
ViewVC logotype

Annotation of /trunk/xvidcore/dshow/src/debug.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1670 - (view) (download)

1 : edgomez 1382 #ifndef _DSHOW_DEBUG_
2 :     #define _DSHOW_DEBUG_
3 :    
4 : Isibaar 1670 #include <stdio.h>
5 :    
6 : suxen_drol 1634 #ifdef __cplusplus
7 :     extern "C" {
8 :     #endif
9 : edgomez 1382
10 : Isibaar 1670 static __inline void OutputDebugStringf(char *fmt, ...)
11 :     {
12 :     va_list args;
13 :     char buf[256];
14 : suxen_drol 1634
15 : Isibaar 1670 va_start(args, fmt);
16 :     vsprintf(buf, fmt, args);
17 :     strcat(buf, "\n");
18 :     OutputDebugString(buf);
19 :     va_end(args);
20 :     }
21 :    
22 : suxen_drol 1634 #ifdef _DEBUG
23 :     #define DPRINTF OutputDebugStringf
24 : edgomez 1382 #else
25 :     static __inline void
26 :     DPRINTF(char *fmt, ...) { }
27 :     #endif
28 :    
29 : suxen_drol 1634 #ifdef __cplusplus
30 :     }
31 :     #endif
32 : edgomez 1382
33 : suxen_drol 1503 #endif /* _DSHOW_DEBUG */

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4