diff options
| author | gingerBill <bill@gingerbill.org> | 2022-08-05 11:57:33 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-08-05 11:57:33 +0100 |
| commit | 576914aee1565618d8448a2bbc3cbef0c4acc4d1 (patch) | |
| tree | 4331a096e8f6f487ffec6216f73b0d7352dd2c13 /core/runtime | |
| parent | 8171f8209a2deadc286ef7165d4a5b174ff82303 (diff) | |
Make `unreachable()` a built-in compiler-level procedure
Diffstat (limited to 'core/runtime')
| -rw-r--r-- | core/runtime/core_builtin.odin | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/core/runtime/core_builtin.odin b/core/runtime/core_builtin.odin index e9fc2a91e..3b8a0fab3 100644 --- a/core/runtime/core_builtin.odin +++ b/core/runtime/core_builtin.odin @@ -785,17 +785,3 @@ unimplemented :: proc(message := "", loc := #caller_location) -> ! { } p("not yet implemented", message, loc) } - -@builtin -@(disabled=ODIN_DISABLE_ASSERT) -unreachable :: proc(message := "", loc := #caller_location) -> ! { - p := context.assertion_failure_proc - if p == nil { - p = default_assertion_failure_proc - } - if message != "" { - p("internal error", message, loc) - } else { - p("internal error", "entered unreachable code", loc) - } -} |