blob: 134f1a6a3eff2d2772de3df8c90fb8a7fdce7321 [file] [log] [blame] [edit]
// TODO: optional prefixing
void wasmbox_init(void) {
// Initialize wasm2c runtime.
init();
// Set up handling for a trap
int trap_code;
if ((trap_code = setjmp(g_jmp_buf))) {
printf("[wasm trap %d, halting]\n", trap_code);
abort();
} else {
Z__initializeZ_vv();
}
}