Skip to content

webarkitLOGs alternatives #6

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

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

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions