1
0
forked from 0ad/0ad

Use debug_printf for script print() function, so it's more visible on Windows

This was SVN commit r10435.
This commit is contained in:
Ykkrosh 2011-10-27 14:19:37 +00:00
parent 18e595a5a6
commit 85e16f95b1

View File

@ -303,7 +303,7 @@ JSBool print(JSContext* cx, uintN argc, jsval* vp)
std::string str;
if (!ScriptInterface::FromJSVal(cx, JS_ARGV(cx, vp)[i], str))
return JS_FALSE;
printf("%s", str.c_str());
debug_printf(L"%hs", str.c_str());
}
fflush(stdout);
JS_SET_RVAL(cx, vp, JSVAL_VOID);