| ![[BACK]](/cvs/cvsweb/icons/back.gif) Return to trace.c CVS log ![[TXT]](/cvs/cvsweb/icons/text.gif) | ![[DIR]](/cvs/cvsweb/icons/dir.gif) Up to  [RetroPC.NET] / np2 / sdl | 
debuneko- (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];
#ifndef WIN32
	char	euc[1024];
#endif
	va_start(ap, fmt);
	vsprintf(buf, fmt, ap);
	va_end(ap);
#ifndef WIN32
	codecnv_sjis2euc(euc, sizeof(euc), buf, sizeof(buf));
	printf("%s\n", euc);
#else
	printf("%s\n", buf);
#endif
}
#endif