mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 12:48:14 +00:00
On -disable-assert, panic will still work but not print the caller location
This commit is contained in:
@@ -817,7 +817,6 @@ assert :: proc(condition: bool, message := "", loc := #caller_location) {
|
||||
}
|
||||
|
||||
@builtin
|
||||
@(disabled=ODIN_DISABLE_ASSERT)
|
||||
panic :: proc(message: string, loc := #caller_location) -> ! {
|
||||
p := context.assertion_failure_proc
|
||||
if p == nil {
|
||||
|
||||
Reference in New Issue
Block a user