summaryrefslogtreecommitdiff
path: root/Bus/Ivy/IvyStdAfx.cpp
blob: 0d1d4b451a27300b40326bf993ae84a2f57529c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// stdafx.cpp : source file that includes just the standard includes
//	libIvy.pch will be the pre-compiled header
//	stdafx.obj will contain the pre-compiled type information

#include "IvyStdAfx.h"

#include <windows.h>

void DebugTrace ( const char *fmt , ... )
{
	char buffer[4096];
#ifdef UNDER_CE
	TCHAR CEBuffer[4096];
#endif
	va_list args;
	
	va_start( args, fmt );     
	_vsnprintf( buffer, sizeof(buffer), fmt, args );
	va_end( args );
#ifdef UNDER_CE
	MultiByteToWideChar( CP_ACP, MB_PRECOMPOSED, buffer, -1, CEBuffer, 4096 );

	OutputDebugString( CEBuffer );
#else
	OutputDebugString( buffer );
#endif
}