MCPcopy Create free account
hub / github.com/9miao/CrossApp / js_log

Function js_log

scripting/javascript/bindings/ScriptingCore.cpp:191–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191void js_log(const char *format, ...) {
192 if (_js_log_buf == NULL) {
193 _js_log_buf = (char *)calloc(sizeof(char), kMaxLogLen+1);
194 }
195 va_list vl;
196 va_start(vl, format);
197 vsnprintf(_js_log_buf, kMaxLogLen, format, vl);
198 va_end(vl);
199 CCLog("JS: %s",_js_log_buf);
200
201}
202
203#define JSB_COMPATIBLE_WITH_COCOS2D_HTML5_BASIC_TYPES 1
204

Callers 2

reportErrorMethod · 0.85
logMethod · 0.85

Calls 1

CCLogFunction · 0.50

Tested by

no test coverage detected