File:  [RetroPC.NET] / np2 / sdl / trace.c
Revision 1.2: download - view: text, annotated - select for diffs
Sun Jun 20 18:36:37 2004 JST (21 years, 4 months ago) by yui
Branches: MAIN
CVS tags: VER_0_80, VER_0_79, HEAD
Win32 SDL change SJIS to EUC (T.Yui)

#include	"compiler.h"
#include	<stdarg.h>
#include	"codecnv.h"


#ifdef TRACE
void trace_init(void) {
}

void trace_term(void) {
}

void trace_fmt(const char *fmt, ...) {

	va_list	ap;
	char	buf[1024];
#if defined(WIN32) && defined(OSLANG_EUC)
	char	sjis[1024];
#endif

	va_start(ap, fmt);
	vsprintf(buf, fmt, ap);
	va_end(ap);
#if defined(WIN32) && defined(OSLANG_EUC)
	codecnv_euc2sjis(sjis, sizeof(sjis), buf, (UINT)-1);
	printf("%s\n", sjis);
#else
	printf("%s\n", buf);
#endif
}
#endif


RetroPC.NET-CVS <cvs@retropc.net>