core/gpu: start on usingnamespace issue and new zig split usage

This commit is contained in:
xdBronch 2023-06-04 14:10:43 -04:00 committed by Stephen Gutekanst
parent 6135071a0c
commit aa69567a1b
4 changed files with 38 additions and 59 deletions

View file

@ -48,7 +48,7 @@ pub fn main() !void {
std.os.exit(1);
};
} else if (argOption("-watch-path")) |value| {
var paths = std.mem.split(u8, value, ",");
var paths = std.mem.splitScalar(u8, value, ',');
builder.watch_paths = try allocator.alloc([]const u8, std.mem.count(u8, value, ",") + 1);
for (0..255) |i| {
const path = paths.next() orelse break;