Add assert_contextless, panic_contextless, unimplemented_contextless

This commit is contained in:
gingerBill
2024-08-14 11:18:24 +01:00
parent 4c19f507ff
commit 78fa675c1a
2 changed files with 31 additions and 0 deletions
+4
View File
@@ -750,6 +750,10 @@ __init_context :: proc "contextless" (c: ^Context) {
}
default_assertion_failure_proc :: proc(prefix, message: string, loc: Source_Code_Location) -> ! {
default_assertion_contextless_failure_proc(prefix, message, loc)
}
default_assertion_contextless_failure_proc :: proc "contextless" (prefix, message: string, loc: Source_Code_Location) -> ! {
when ODIN_OS == .Freestanding {
// Do nothing
} else {