diff --git a/platforms/cpp/wasm3_cpp/include/wasm3_cpp.h b/platforms/cpp/wasm3_cpp/include/wasm3_cpp.h index aa03132..060c564 100644 --- a/platforms/cpp/wasm3_cpp/include/wasm3_cpp.h +++ b/platforms/cpp/wasm3_cpp/include/wasm3_cpp.h @@ -77,7 +77,7 @@ namespace wasm3 { template struct wrap_helper { - static const void *wrap_fn(IM3Runtime rt, stack_type sp, mem_type mem) { + static const void *wrap_fn(IM3Runtime rt, stack_type sp, mem_type mem, void* userdata) { Ret *ret_ptr = (Ret *) (sp); std::tuple args; get_args_from_stack(sp, mem, args); @@ -89,7 +89,7 @@ namespace wasm3 { template struct wrap_helper { - static const void *wrap_fn(IM3Runtime rt, stack_type sp, mem_type mem) { + static const void *wrap_fn(IM3Runtime rt, stack_type sp, mem_type mem, void* userdata) { std::tuple args; get_args_from_stack(sp, mem, args); std::apply(Fn, args);