diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2026-01-26 18:31:04 +0000 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2026-01-26 18:31:04 +0000 |
| commit | b85f29d979ffbeb044bba644d43dd2e462a63008 (patch) | |
| tree | eed58cd0968be771f2f039a4beae9480b7aac2f7 /base | |
| parent | 96f1069e4a615e0857d9443fe5af639e3b2dd46a (diff) | |
Rename to `type_assertion_trap_contextless`
Diffstat (limited to 'base')
| -rw-r--r-- | base/runtime/error_checks.odin | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/base/runtime/error_checks.odin b/base/runtime/error_checks.odin index 34f51ab8e..df6cb9485 100644 --- a/base/runtime/error_checks.odin +++ b/base/runtime/error_checks.odin @@ -12,7 +12,7 @@ bounds_trap :: proc "contextless" () -> ! { } @(no_instrumentation) -type_assertion_trap :: proc "contextless" () -> ! { +type_assertion_trap_contextless :: proc "contextless" () -> ! { when ODIN_OS == .Windows { windows_trap_type_assertion() } else when ODIN_OS == .Orca { @@ -160,7 +160,7 @@ when ODIN_NO_RTTI { handle_error :: proc "contextless" (file: string, line, column: i32) -> ! { print_caller_location(Source_Code_Location{file, line, column, ""}) print_string(" Invalid type assertion\n") - type_assertion_trap() + type_assertion_trap_contextless() } handle_error(file, line, column) } @@ -189,7 +189,7 @@ when ODIN_NO_RTTI { handle_error :: proc "contextless" (file: string, line, column: i32) -> ! { print_caller_location(Source_Code_Location{file, line, column, ""}) print_string(" Invalid type assertion\n") - type_assertion_trap() + type_assertion_trap_contextless() } handle_error(file, line, column) } @@ -236,7 +236,7 @@ when ODIN_NO_RTTI { print_string(" to ") print_typeid(to) print_byte('\n') - type_assertion_trap() + type_assertion_trap_contextless() } handle_error(file, line, column, from, to) } @@ -331,7 +331,7 @@ when ODIN_NO_RTTI { print_typeid(actual) } print_byte('\n') - type_assertion_trap() + type_assertion_trap_contextless() } handle_error(file, line, column, from, to, from_data) } |