|
|
Neko Project II
#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