diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/root.zig | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/root.zig b/src/root.zig index 6f6c9cb..a312b2a 100644 --- a/src/root.zig +++ b/src/root.zig @@ -16,16 +16,12 @@ const Result = struct { const SyscallError = error{Kernel}; -fn _start() callconv(.C) noreturn { +export fn _start() noreturn { if (!@hasDecl(root, "main")) @compileError("no main function"); root.main(); end(); } -comptime { - if (!builtin.is_test) @export(_start, .{ .name = "_start" }); -} - fn autoCast(value: anytype) usize { return switch (@typeInfo(@TypeOf(value))) { .Type => @compileError("cannot pass type to system call"), |