blob: c34bd1f2d9cc83d42f5bf83996257c49f49de7bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package odin_libc
import "base:runtime"
@(require, linkage="strong", link_name="__odin_libc_assert_fail")
__odin_libc_assert_fail :: proc "c" (func: cstring, file: cstring, line: i32, expr: cstring) -> ! {
context = g_ctx
loc := runtime.Source_Code_Location{
file_path = string(file),
line = line,
column = 0,
procedure = string(func),
}
context.assertion_failure_proc("runtime assertion", string(expr), loc)
}
|