summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/emscripten/system/lib/standalone/standalone_wasm_stdio.c
blob: b07e268300323543ed6af8a1d1f23be83ff5d4d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright 2019 The Emscripten Authors.  All rights reserved.
 * Emscripten is available under two separate licenses, the MIT license and the
 * University of Illinois/NCSA Open Source License.  Both these licenses can be
 * found in the LICENSE file.
 */

#include <emscripten.h>
#include <stdio.h>

void emscripten_console_log(const char *utf8String) {
  puts(utf8String);
}

void emscripten_console_warn(const char *utf8String) {
  fprintf(stderr, "%s\n", utf8String);
}

void emscripten_console_error(const char *utf8String) {
  emscripten_console_warn(utf8String);
}