|
@@ -125,7 +125,7 @@ bprintf :: proc(buf: []byte, fmt: string, args: ..any) -> string {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-assertf :: proc "contextless" (condition: bool, fmt: string, args: ..any, loc := #caller_location) -> bool {
|
|
|
|
|
|
+assertf :: proc(condition: bool, fmt: string, args: ..any, loc := #caller_location) -> bool {
|
|
if !condition {
|
|
if !condition {
|
|
p := context.assertion_failure_proc;
|
|
p := context.assertion_failure_proc;
|
|
if p == nil {
|
|
if p == nil {
|
|
@@ -137,7 +137,7 @@ assertf :: proc "contextless" (condition: bool, fmt: string, args: ..any, loc :=
|
|
return condition;
|
|
return condition;
|
|
}
|
|
}
|
|
|
|
|
|
-panicf :: proc "contextless" (fmt: string, args: ..any, loc := #caller_location) {
|
|
|
|
|
|
+panicf :: proc(fmt: string, args: ..any, loc := #caller_location) {
|
|
p := context.assertion_failure_proc;
|
|
p := context.assertion_failure_proc;
|
|
if p == nil {
|
|
if p == nil {
|
|
p = runtime.default_assertion_failure_proc;
|
|
p = runtime.default_assertion_failure_proc;
|