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