Skip to content

Commit b85f29d

Browse files
committed
Rename to type_assertion_trap_contextless
1 parent 96f1069 commit b85f29d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

base/runtime/error_checks.odin

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ bounds_trap :: proc "contextless" () -> ! {
1212
}
1313

1414
@(no_instrumentation)
15-
type_assertion_trap :: proc "contextless" () -> ! {
15+
type_assertion_trap_contextless :: proc "contextless" () -> ! {
1616
when ODIN_OS == .Windows {
1717
windows_trap_type_assertion()
1818
} else when ODIN_OS == .Orca {
@@ -160,7 +160,7 @@ when ODIN_NO_RTTI {
160160
handle_error :: proc "contextless" (file: string, line, column: i32) -> ! {
161161
print_caller_location(Source_Code_Location{file, line, column, ""})
162162
print_string(" Invalid type assertion\n")
163-
type_assertion_trap()
163+
type_assertion_trap_contextless()
164164
}
165165
handle_error(file, line, column)
166166
}
@@ -189,7 +189,7 @@ when ODIN_NO_RTTI {
189189
handle_error :: proc "contextless" (file: string, line, column: i32) -> ! {
190190
print_caller_location(Source_Code_Location{file, line, column, ""})
191191
print_string(" Invalid type assertion\n")
192-
type_assertion_trap()
192+
type_assertion_trap_contextless()
193193
}
194194
handle_error(file, line, column)
195195
}
@@ -236,7 +236,7 @@ when ODIN_NO_RTTI {
236236
print_string(" to ")
237237
print_typeid(to)
238238
print_byte('\n')
239-
type_assertion_trap()
239+
type_assertion_trap_contextless()
240240
}
241241
handle_error(file, line, column, from, to)
242242
}
@@ -331,7 +331,7 @@ when ODIN_NO_RTTI {
331331
print_typeid(actual)
332332
}
333333
print_byte('\n')
334-
type_assertion_trap()
334+
type_assertion_trap_contextless()
335335
}
336336
handle_error(file, line, column, from, to, from_data)
337337
}

0 commit comments

Comments
 (0)