mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-06 05:17:50 +00:00
Zig 0.15: emit bench
This commit is contained in:
@@ -90,12 +90,17 @@ fn mainActionImpl(
|
||||
const rand = prng.random();
|
||||
|
||||
// Our output always goes to stdout.
|
||||
const writer = std.io.getStdOut().writer();
|
||||
var buffer: [2048]u8 = undefined;
|
||||
var stdout_writer = std.fs.File.stdout().writer(&buffer);
|
||||
const writer = &stdout_writer.interface;
|
||||
|
||||
// Create our implementation
|
||||
const impl = try Impl.create(alloc, opts);
|
||||
defer impl.destroy(alloc);
|
||||
try impl.run(writer, rand);
|
||||
|
||||
// Always flush
|
||||
try writer.flush();
|
||||
}
|
||||
|
||||
test {
|
||||
|
||||
Reference in New Issue
Block a user