mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 11:20:08 +00:00
On -disable-assert, panic will still work but not print the caller location
This commit is contained in:
@@ -664,8 +664,10 @@ default_assertion_failure_proc :: proc(prefix, message: string, loc: Source_Code
|
||||
when ODIN_OS == .Freestanding {
|
||||
// Do nothing
|
||||
} else {
|
||||
print_caller_location(loc)
|
||||
print_string(" ")
|
||||
when !ODIN_DISABLE_ASSERT {
|
||||
print_caller_location(loc)
|
||||
print_string(" ")
|
||||
}
|
||||
print_string(prefix)
|
||||
if len(message) > 0 {
|
||||
print_string(": ")
|
||||
|
||||
Reference in New Issue
Block a user