1 |
#ifndef _DSHOW_DEBUG_ |
#ifndef _DSHOW_DEBUG_ |
2 |
#define _DSHOW_DEBUG_ |
#define _DSHOW_DEBUG_ |
3 |
|
|
4 |
|
#include <stdio.h> |
5 |
|
|
6 |
#ifdef __cplusplus |
#ifdef __cplusplus |
7 |
extern "C" { |
extern "C" { |
8 |
#endif |
#endif |
9 |
|
|
10 |
void OutputDebugStringf(char *fmt, ...); |
static __inline void OutputDebugStringf(char *fmt, ...) |
11 |
|
{ |
12 |
|
va_list args; |
13 |
|
char buf[256]; |
14 |
|
|
15 |
|
va_start(args, fmt); |
16 |
|
vsprintf(buf, fmt, args); |
17 |
|
strcat(buf, "\n"); |
18 |
|
OutputDebugString(buf); |
19 |
|
va_end(args); |
20 |
|
} |
21 |
|
|
22 |
#ifdef _DEBUG |
#ifdef _DEBUG |
23 |
#define DPRINTF OutputDebugStringf |
#define DPRINTF OutputDebugStringf |