From f5549f6bde21c2378700770eae5ab7bba46a3671 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 8 Sep 2018 12:17:16 +0100 Subject: [PATCH] Make `panic` a diverging procedure --- core/runtime/core.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/runtime/core.odin b/core/runtime/core.odin index 4af46a163..2e2f63ef7 100644 --- a/core/runtime/core.odin +++ b/core/runtime/core.odin @@ -583,7 +583,7 @@ assert :: proc "contextless" (condition: bool, message := "", loc := #caller_loc } @(builtin) -panic :: proc "contextless" (message: string, loc := #caller_location) { +panic :: proc "contextless" (message: string, loc := #caller_location) -> ! { p := context.assertion_failure_proc; if p == nil { p = default_assertion_failure_proc;