crap
This commit is contained in:
parent
5b62f55123
commit
bb688e52f4
@ -15,7 +15,8 @@ pub fn Cache(comptime T: type, TLoader: type) type {
|
||||
};
|
||||
}
|
||||
|
||||
pub fn deinit(self: @This()) void {
|
||||
pub fn deinit(self: *@This()) void {
|
||||
self.clear();
|
||||
self.resources.deinit();
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ pub fn Delegate(comptime Event: type) type {
|
||||
.callback = .{
|
||||
.bound = struct {
|
||||
fn cb(self: usize, param: Event) void {
|
||||
return @call(.{ .modifier = .always_inline }, @field(@intToPtr(T, self), fn_name), .{param});
|
||||
@call(.{ .modifier = .always_inline }, @field(@intToPtr(T, self), fn_name), .{param});
|
||||
}
|
||||
}.cb,
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user