| ... | ... | @@ -502,8 +502,8 @@ pub fn opslice(slice: anytype, index: usize) ?std.meta.Child(@TypeOf(slice)) { |
| 502 | 502 | return slice[index]; |
| 503 | 503 | } |
| 504 | 504 | |
| 505 | | pub fn assertLog(ok: bool, message: string) void { |
| 506 | | if (!ok) std.log.err("assertion failure: {s}", .{message}); |
| 505 | pub fn assertLog(ok: bool, comptime message: string, args: anytype) void { |
| 506 | if (!ok) std.log.err("assertion failure: " ++ message, args); |
| 507 | 507 | if (!ok) unreachable; // assertion failure |
| 508 | 508 | } |
| 509 | 509 | |