Patch aio.zig: update loadBuffersWithPrefix argument type to match the conditional type of loadBuffers init_args.
This commit is contained in:
parent
af8844c1f1
commit
4d6d975dc0
@ -518,7 +518,7 @@ pub fn loadBuffers(
|
|||||||
/// The `init_args` are used to initialize the non Buffer fields, using `Model.init` function.
|
/// The `init_args` are used to initialize the non Buffer fields, using `Model.init` function.
|
||||||
pub fn loadBuffersWithPrefix(
|
pub fn loadBuffersWithPrefix(
|
||||||
comptime Model: type,
|
comptime Model: type,
|
||||||
init_args: anytype,
|
init_args: if (@hasDecl(Model, "init")) stdx.meta.Tail(stdx.meta.FnArgs(Model.init)) else void,
|
||||||
buffer_store: BufferStore,
|
buffer_store: BufferStore,
|
||||||
allocator: std.mem.Allocator,
|
allocator: std.mem.Allocator,
|
||||||
platform: zml.Platform,
|
platform: zml.Platform,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user