Make panic a diverging procedure

This commit is contained in:
gingerBill
2018-09-08 12:17:16 +01:00
parent 3825eab989
commit f5549f6bde
+1 -1
View File
@@ -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;