2023-08-01 11:35:04 +00:00
|
|
|
pub const debug = @import("debug.zig");
|
2024-04-05 15:07:29 +00:00
|
|
|
pub const flags = @import("flags.zig");
|
2023-08-01 11:35:04 +00:00
|
|
|
pub const io = @import("io.zig");
|
2024-02-28 15:47:37 +00:00
|
|
|
pub const json = @import("json.zig");
|
2023-06-21 14:45:14 +00:00
|
|
|
pub const math = @import("math.zig");
|
|
|
|
|
pub const meta = @import("meta.zig");
|
2024-01-11 15:40:15 +00:00
|
|
|
pub const queue = @import("queue.zig");
|
2024-02-28 15:47:37 +00:00
|
|
|
pub const time = @import("time.zig");
|
2024-09-10 09:14:28 +00:00
|
|
|
|
|
|
|
|
pub inline fn stackSlice(comptime max_len: usize, T: type, len: usize) []T {
|
|
|
|
|
debug.assert(len <= max_len, "stackSlice can only create a slice of up to {} elements, got: {}", .{ max_len, len });
|
|
|
|
|
var storage: [max_len]T = undefined;
|
|
|
|
|
return storage[0..len];
|
|
|
|
|
}
|