diff options
| author | gingerBill <bill@gingerbill.org> | 2021-11-07 16:19:27 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-11-07 16:19:27 +0000 |
| commit | dc2edd3e7904d76bd6e4e4eb02e27a1f3cb4b305 (patch) | |
| tree | 4ad3bff8503be9ae9a257a506dc205932c07cab4 /core/runtime/core.odin | |
| parent | e9c903f1ea480b9f873c81c4acc43fcb1e437d48 (diff) | |
Improve support for `freestanding_wasm32`
Diffstat (limited to 'core/runtime/core.odin')
| -rw-r--r-- | core/runtime/core.odin | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/core/runtime/core.odin b/core/runtime/core.odin index 20e808fb7..db97fa15b 100644 --- a/core/runtime/core.odin +++ b/core/runtime/core.odin @@ -516,14 +516,17 @@ __init_context :: proc "contextless" (c: ^Context) { } default_assertion_failure_proc :: proc(prefix, message: string, loc: Source_Code_Location) -> ! { - print_caller_location(loc) - print_string(" ") - print_string(prefix) - if len(message) > 0 { - print_string(": ") - print_string(message) + when ODIN_OS == "freestanding" { + // Do nothing + } else { + print_caller_location(loc) + print_string(" ") + print_string(prefix) + if len(message) > 0 { + print_string(": ") + print_string(message) + } + print_byte('\n') } - print_byte('\n') - // intrinsics.debug_trap(); intrinsics.trap() } |