I am using this to route WASI calls to web49_api_wasi
web49_env_func_tweb49_main_import_func(void*state, constchar*mod, constchar*func) {
printf("called: %s.%s\n", mod, func);
if (strcmp(mod, "null0") ==0) {
returnweb49_api_null0(state, mod, func);
} elseif (strcmp(mod, "wasi_snapshot_preview1") ==0) {
returnweb49_api_wasi(state, mod, func);
}
fprintf(stderr, "Unhandled import: %s.%s\n", mod, func);
returnNULL;
}and for a printf from the wasm, it seems to just output huge chunks of memory. Do I need to put more in state?
I am using this to route WASI calls to
web49_api_wasiand for a
printffrom the wasm, it seems to just output huge chunks of memory. Do I need to put more instate?