From 5bc9feb5cb98fc13db62d01b2b9fec15677310a7 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 26 Mar 2017 06:39:28 -0400 Subject: organize std and make import relative to current file closes #216 --- std/panic.zig | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 std/panic.zig (limited to 'std/panic.zig') diff --git a/std/panic.zig b/std/panic.zig deleted file mode 100644 index 9b58a4d9c8..0000000000 --- a/std/panic.zig +++ /dev/null @@ -1,12 +0,0 @@ -// This file is included if and only if the user's main source file does not -// include a public panic function. -// If this file wants to import other files *by name*, support for that would -// have to be added in the compiler. - -pub coldcc fn panic(message: []const u8) -> noreturn { - if (@compileVar("os") == Os.freestanding) { - while (true) {} - } else { - @import("std").debug.panic(message); - } -} -- cgit v1.2.3