Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/system/lib/standalone/standalone_wasm_stdio.c
6171 views
1
/*
2
* Copyright 2019 The Emscripten Authors. All rights reserved.
3
* Emscripten is available under two separate licenses, the MIT license and the
4
* University of Illinois/NCSA Open Source License. Both these licenses can be
5
* found in the LICENSE file.
6
*/
7
8
#include <emscripten.h>
9
#include <stdio.h>
10
11
void emscripten_console_log(const char *utf8String) {
12
puts(utf8String);
13
}
14
15
void emscripten_console_warn(const char *utf8String) {
16
fprintf(stderr, "%s\n", utf8String);
17
}
18
19
void emscripten_console_error(const char *utf8String) {
20
emscripten_console_warn(utf8String);
21
}
22
23