Skip to content

webarkitLOGs alternatives #6

@kalwalt

Description

@kalwalt

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);
}

Metadata

Metadata

Assignees

Labels

C/C++ codeconcerning the C/C++ code design and improvementsEmscriptenenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions