mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 19:30:06 +00:00
Move all os specific stuff for the runtime to one file
This commit is contained in:
@@ -522,6 +522,21 @@ init_global_temporary_allocator :: proc(data: []byte, backup_allocator := contex
|
||||
}
|
||||
|
||||
|
||||
default_assertion_failure_proc :: proc(prefix, message: string, loc: Source_Code_Location) {
|
||||
fd := os_stderr();
|
||||
print_caller_location(fd, loc);
|
||||
print_string(fd, " ");
|
||||
print_string(fd, prefix);
|
||||
if len(message) > 0 {
|
||||
print_string(fd, ": ");
|
||||
print_string(fd, message);
|
||||
}
|
||||
print_byte(fd, '\n');
|
||||
debug_trap();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@builtin
|
||||
copy_slice :: proc "contextless" (dst, src: $T/[]$E) -> int {
|
||||
|
||||
Reference in New Issue
Block a user