// SPDX-FileCopyrightText: 2024 Himbeer // // SPDX-License-Identifier: AGPL-3.0-or-later const builtin = @import("builtin"); const root = @import("root"); pub const os = @import("os.zig"); fn _start() callconv(.C) noreturn { if (!@hasDecl(root, "main")) @compileError("no main function"); root.main(); os.end(); } comptime { if (!builtin.is_test) @export(_start, .{ .name = "_start" }); }