add web support using Emscripten

This commit is contained in:
Blue 2023-08-11 00:44:28 -06:00
parent 566a2860c7
commit 7a0d397baf
6 changed files with 277 additions and 25 deletions

View file

@ -1296,7 +1296,7 @@ pub fn loadCodepoints(text: [:0]const u8) []i32 {
}
pub fn textFormat(text: [:0]const u8, args: anytype) [:0]const u8 {
return std.mem.span(@call(.{}, cdef.TextFormat, .{@as([*c]const u8, @ptrCast(text))} ++ args));
return std.mem.span(@call(.auto, cdef.TextFormat, .{@as([*c]const u8, @ptrCast(text))} ++ args));
}
pub fn textSplit(text: [:0]const u8, delimiter: u8) [][:0]const u8 {