blob: 1d4790a7448454f5e4c28d7b3eea160c4d2af82d [file]
/*
* Copyright 2023 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 <stdio.h>
#include <emscripten/console.h>
int main() {
printf("Hello, world!\n");
#ifndef NDEBUG
// This symbol is only available in debug builds (i.e. -sASSERTIONS)
emscripten_dbg("native dbg message");
emscripten_dbgn("Hello, world!", 5);
emscripten_dbgf("formatted: %d", 42);
#endif
return 0;
}