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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1670 - (download) (annotate)
Fri Dec 30 13:52:39 2005 UTC (18 years, 3 months ago) by Isibaar
File size: 475 byte(s)
- Made the debug build config link again
#ifndef _DSHOW_DEBUG_
#define _DSHOW_DEBUG_

#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif

static __inline void OutputDebugStringf(char *fmt, ...)
{
	va_list args;
	char buf[256];

	va_start(args, fmt);
	vsprintf(buf, fmt, args);
	strcat(buf, "\n");
	OutputDebugString(buf);
	va_end(args);
}

#ifdef _DEBUG
#define DPRINTF OutputDebugStringf
#else
static __inline void 
DPRINTF(char *fmt, ...) { }
#endif

#ifdef __cplusplus
}
#endif

#endif /* _DSHOW_DEBUG */

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