Stream: git-wasmtime

Topic: wasmtime / Issue #2206 Set exported function's name in C ...


view this post on Zulip Wasmtime GitHub notifications bot (Sep 16 2020 at 15:42):

jovanivanovic opened Issue #2206:

Hello, I haven't found a way to set a name to the exported function, am I missing something here?

wasm_functype_t *core_ty = wasm_functype_new_0_1(wasm_valtype_new_i32());
wasm_func_t *core = wasm_func_new_with_env(store, core_ty, WasmExports::ICore_Instance, wasmResource, nullptr);
wasm_functype_delete(core_ty);

view this post on Zulip Wasmtime GitHub notifications bot (Sep 16 2020 at 15:43):

jovanivanovic edited Issue #2206:

Hello, I haven't found a way to set a name to the exported function, am I missing something here?

wasm_functype_t *core_ty = wasm_functype_new_0_1(wasm_valtype_new_i32());
wasm_func_t *core = wasm_func_new_with_env(store, core_ty, WasmExports::ICore_Instance, wasmResource, nullptr);
wasm_functype_delete(core_ty);

Or even setting a namespace for the export?

view this post on Zulip Wasmtime GitHub notifications bot (Sep 17 2020 at 10:56):

jovanivanovic edited Issue #2206:

Hello, I haven't found a way to set a name to the imported function, am I missing something here?

wasm_functype_t *core_ty = wasm_functype_new_0_1(wasm_valtype_new_i32());
wasm_func_t *core = wasm_func_new_with_env(store, core_ty, WasmExports::ICore_Instance, wasmResource, nullptr);
wasm_functype_delete(core_ty);

Or even setting a namespace for the import?


Last updated: Dec 23 2024 at 12:05 UTC