Fix stdout error

This commit is contained in:
Adrien Bouvais 2025-01-12 20:28:35 +01:00
parent 6ccfc7feb9
commit c6725f6b54

View File

@ -11,11 +11,10 @@ var path_buffer: [1024 * 1024]u8 = undefined;
var fa = std.heap.FixedBufferAllocator.init(&map_error_buffer);
const allocator = fa.allocator();
const stdout = std.io.getStdOut().writer();
// Maybe create a struct for that
pub fn send(comptime format: []const u8, args: anytype) void {
if (config.DONT_SEND) return;
const stdout = std.io.getStdOut().writer();
stdout.print(format, args) catch |err| {
log.err("Can't send: {any}", .{err});