File:  [RetroPC.NET] / np2 / mona / trace.c
Revision 1.1: download - view: text, annotated - select for diffs
Fri Feb 4 14:45:46 2005 JST (20 years, 8 months ago) by yui
Branches: MAIN
CVS tags: HEAD
support Mona-OS (T.Yui)

#include	"compiler.h"
#if !defined(TARGET_MONA)
#include	<stdarg.h>
#endif
#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>