Fix error wrapping parameter-less function

main
copygirl 1 year ago
parent ca386fde1b
commit 7596c89a29
  1. 2
      src/func.zig

@ -117,7 +117,7 @@ pub const Func = extern struct {
comptime var offset = 0; comptime var offset = 0;
// If the first function parameter accepts a *Caller, pass that in! // If the first function parameter accepts a *Caller, pass that in!
if (meta.params[0].type.? == *Caller) { if (meta.params.len > 0 and meta.params[0].type.? == *Caller) {
func_args[0] = caller; func_args[0] = caller;
offset = 1; offset = 1;
} }

Loading…
Cancel
Save