pub const Vector = switch (native_os)
On WASI without libc, this is void because the environment has to be queried and heap-allocated at runtime.
void
15 16 17 18 19 20 21 22 23
pub const Vector = switch (native_os) { .windows => []const u16, // WTF-16 encoded .wasi => switch (builtin.link_libc) { false => void, true => []const [*:0]const u8, }, .freestanding, .other => void, else => []const [*:0]const u8, }
On WASI without libc, this is
voidbecause the environment has to be queried and heap-allocated at runtime.