Update @call to latest API

This commit is contained in:
Dendy 2022-12-31 01:57:45 +01:00
parent 7265089f7c
commit 81d24ea62d
2 changed files with 2 additions and 2 deletions

View File

@ -13,5 +13,5 @@ pub fn init(scancode: SDL.Scancode, callback: *const anyopaque) Self {
}; };
} }
pub fn call(self: Self, state: anytype) void { pub fn call(self: Self, state: anytype) void {
@call(.{}, @ptrCast(*const fn (@TypeOf(state)) void, self.callback), .{state}); @call(.auto, @ptrCast(*const fn (@TypeOf(state)) void, self.callback), .{state});
} }

View File

@ -169,7 +169,7 @@ fn actionSelUp(self: *Self) void {
fn actionSelect(self: *Self) void { fn actionSelect(self: *Self) void {
const action = self.getSel(0).action; const action = self.getSel(0).action;
@call(.{}, action, .{self}); @call(.auto, action, .{self});
} }
fn play(self: *Self) void { fn play(self: *Self) void {