Actually i implemented webarkitLOGi in this manner:
|
void webarkitLOGi(char* message) { |
|
EM_ASM ({ |
|
var message = UTF8ToString($0); |
|
var infoHead = UTF8ToString($1); |
|
var style = UTF8ToString($2); |
|
console.log(infoHead + message, style); |
|
}, |
|
message, |
|
WARKTinfo, |
|
WARKTinfoStyle |
|
); |
|
} |
but maybe we could use
emscripten_log:
void emscripten_log(int flags, const char* format, ...) and webarkitLOGi could become:
void webarkitLOGi(char* message) {
emscripten_log(EM_LOG_NO_PATHS | EM_LOG_CONSOLE, message);
}
Actually i implemented webarkitLOGi in this manner:
WebARKitLib/lib/SRC/WebARKit/WebARKitLog.cpp
Lines 10 to 21 in fcf13e2
but maybe we could use emscripten_log:
void emscripten_log(int flags, const char* format, ...)and webarkitLOGi could become: