-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
C/C++ codeconcerning the C/C++ code design and improvementsconcerning the C/C++ code design and improvementsEmscriptenenhancementNew feature or requestNew feature or request
Description
Actually i implemented webarkitLOGi in this manner:
WebARKitLib/lib/SRC/WebARKit/WebARKitLog.cpp
Lines 10 to 21 in fcf13e2
| 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);
}Metadata
Metadata
Assignees
Labels
C/C++ codeconcerning the C/C++ code design and improvementsconcerning the C/C++ code design and improvementsEmscriptenenhancementNew feature or requestNew feature or request