Browse Source

Make `panic` a diverging procedure

gingerBill 7 years ago
parent
commit
f5549f6bde
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/runtime/core.odin

+ 1 - 1
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;