mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
std: find a better home for the "preopens" concept
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
const std = @import("std");
|
||||
|
||||
pub fn main(init: std.process.Init) !void {
|
||||
const preopens = try std.fs.wasi.preopensAlloc(init.arena.allocator());
|
||||
|
||||
for (preopens.names, 0..) |preopen, i| {
|
||||
std.debug.print("{d}: {s}\n", .{ i, preopen });
|
||||
pub fn main(init: std.process.Init) void {
|
||||
for (init.preopens.map.keys(), 0..) |preopen, i| {
|
||||
std.log.info("{d}: {s}", .{ i, preopen });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user