From 6e350ee127b4e230160eab42eeadfc5021bb66e0 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Tue, 24 Oct 2023 10:28:52 -0700 Subject: wasm2c: implement the tail-call proposal (#2272) --- wasm2c/examples/callback/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wasm2c/examples/callback/main.c') diff --git a/wasm2c/examples/callback/main.c b/wasm2c/examples/callback/main.c index 8c6f9db0..8d9ab59e 100644 --- a/wasm2c/examples/callback/main.c +++ b/wasm2c/examples/callback/main.c @@ -26,7 +26,8 @@ int main(int argc, char** argv) { */ wasm_rt_func_type_t fn_type = wasm2c_callback_get_func_type(1, 0, WASM_RT_I32); - wasm_rt_funcref_t fn_ref = {fn_type, (wasm_rt_function_ptr_t)print, &inst}; + wasm_rt_funcref_t fn_ref = { + fn_type, (wasm_rt_function_ptr_t)print, {NULL}, &inst}; w2c_callback_set_print_function(&inst, fn_ref); /* "say_hello" uses the previously installed callback. */ -- cgit v1.2.3