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.
CALLBACK
1 parent 9db4d80 commit 7da4263Copy full SHA for 7da4263
src/main.zig
@@ -102,7 +102,7 @@ pub const Module = opaque {
102
fn cb(params: ?*const Valtype, results: ?*Valtype) callconv(.C) ?*Trap {
103
_ = params;
104
_ = results;
105
- const func = @as(fn () void, @ptrFromInt(CALLBACK));
+ const func = @as(*const fn () void, @ptrFromInt(CALLBACK)).*;
106
func();
107
return null;
108
}
0 commit comments