mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Make panic a diverging procedure
This commit is contained in:
@@ -583,7 +583,7 @@ assert :: proc "contextless" (condition: bool, message := "", loc := #caller_loc
|
|||||||
}
|
}
|
||||||
|
|
||||||
@(builtin)
|
@(builtin)
|
||||||
panic :: proc "contextless" (message: string, loc := #caller_location) {
|
panic :: proc "contextless" (message: string, loc := #caller_location) -> ! {
|
||||||
p := context.assertion_failure_proc;
|
p := context.assertion_failure_proc;
|
||||||
if p == nil {
|
if p == nil {
|
||||||
p = default_assertion_failure_proc;
|
p = default_assertion_failure_proc;
|
||||||
|
|||||||
Reference in New Issue
Block a user