ona/source/coral/debug.zig

11 lines
240 B
Zig
Executable File

///
/// Active code comment to assert that `condition` should always be true.
///
/// Safety-checked behavior is invoked where `condition` evaluates to false.
///
pub fn assert(condition: bool) void {
if (!condition) {
unreachable;
}
}