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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1503, Sun Jul 18 02:00:05 2004 UTC revision 1634, Thu Sep 15 10:55:29 2005 UTC
# Line 1  Line 1 
1  #ifndef _DSHOW_DEBUG_  #ifndef _DSHOW_DEBUG_
2  #define _DSHOW_DEBUG_  #define _DSHOW_DEBUG_
3    
4  #ifdef _DEBUG  #ifdef __cplusplus
5  #include <stdio.h>      /* vsprintf */  extern "C" {
6  #define DPRINTF_BUF_SZ  1024  #endif
 static __inline void  
 DPRINTF(char *fmt, ...)  
 {  
         va_list args;  
         char buf[DPRINTF_BUF_SZ];  
7    
8          va_start(args, fmt);  void OutputDebugStringf(char *fmt, ...);
9          vsprintf(buf, fmt, args);  
10          OutputDebugString(buf);  #ifdef _DEBUG
11  }  #define DPRINTF OutputDebugStringf
12  #else  #else
13  static __inline void  static __inline void
14  DPRINTF(char *fmt, ...) { }  DPRINTF(char *fmt, ...) { }
15  #endif  #endif
16    
17    #ifdef __cplusplus
18    }
19    #endif
20    
21  #endif /* _DSHOW_DEBUG */  #endif /* _DSHOW_DEBUG */

Legend:
Removed from v.1503  
changed lines
  Added in v.1634

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