We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ca0ab6 commit 23398afCopy full SHA for 23398af
src/main.zig
@@ -212,6 +212,10 @@ pub const Func = opaque {
212
};
213
}
214
215
+ pub fn deinit(self: *Func) void {
216
+ wasm_func_delete(self);
217
+ }
218
+
219
/// Returns tue if the given `kind` of `Valkind` can coerce to type `T`
220
fn matchesKind(comptime T: type, kind: Valkind) bool {
221
return switch (T) {
@@ -226,6 +230,7 @@ pub const Func = opaque {
226
230
227
231
228
232
extern "c" fn wasm_func_new(*Store, ?*c_void, Callback) ?*Func;
233
+ extern "c" fn wasm_func_delete(*Func) void;
229
234
extern "c" fn wasm_func_as_extern(*Func) ?*Extern;
235
extern "c" fn wasm_func_copy(*Func) ?*Func;
236
extern "c" fn wasm_func_call(*Func, *const ValVec, *ValVec) ?*Trap;
0 commit comments