File:  [RetroPC.NET] / np2 / mona / trace.c
Revision 1.2: download - view: text, annotated - select for diffs
Sat Feb 12 21:13:58 2005 JST (20 years, 8 months ago) by yui
Branches: MAIN
CVS tags: VER_0_82_x64, VER_0_82, VER_0_81A, VER_0_81, HEAD
move codecnv (T.Yui)

#include	"compiler.h"
#if !defined(TARGET_MONA)
#include	<stdarg.h>
#endif
#if defined(WIN32) && defined(OSLANG_EUC)
#include	"codecnv.h"
#endif

#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>