Use CCLOG to implement js_log

This commit is contained in:
James Chen 2012-08-27 14:47:21 -07:00 committed by folecr
parent 4256dc6830
commit 60dae250f2
1 changed files with 1 additions and 5 deletions

View File

@ -89,11 +89,7 @@ void js_log(const char *format, ...) {
int len = vsnprintf(_js_log_buf, 256, format, vl);
va_end(vl);
if (len) {
#ifdef ANDROID
__android_log_print(ANDROID_LOG_DEBUG, "js_log", _js_log_buf);
#else
fprintf(stderr, "JS: %s\n", _js_log_buf);
#endif
CCLOG("JS: %s\n", _js_log_buf);
}
}