all repos — pba-zig @ 7380b30e39aad95714215d2a1bc9b6583168f442

Protobufs But Awesomer as rewritten in Zig

src/fail.zig (view raw)

 1
 2
 3
 4
 5
 6
 7
const std = @import("std");
const lex = @import("lex.zig");

pub fn fail(pos: lex.Position, msg: []const u8) noreturn {
    std.log.err("PBA compilation failed at line {d}, column {d} with message {s}", .{ pos.line, pos.column, msg });
    std.process.exit(1);
}