From 0c756525dbb7b58813bbacaccaf558ca8f759ff9 Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Sat, 26 Dec 2020 03:26:24 +0200 Subject: [PATCH] Fix cpp adapter --- platforms/cpp/wasm3_cpp/include/wasm3_cpp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);