/*1* Copyright 2019 The Emscripten Authors. All rights reserved.2* Emscripten is available under two separate licenses, the MIT license and the3* University of Illinois/NCSA Open Source License. Both these licenses can be4* found in the LICENSE file.5*/67#include <stdlib.h>8#include <wasi/api.h>910__attribute__((__weak__)) void __wasm_call_ctors(void);1112int __main_void(void);1314void _start(void) {15if (__wasm_call_ctors) {16__wasm_call_ctors();17}1819/*20* Will either end up calling the user's original zero argument main directly21* or our __original_main fallback in __original_main.c which handles22* populating argv.23*/24int r = __main_void();2526exit(r);27}282930