// `assert` (ERR step E4.1): a false condition prints `ASSERTION FAILED: ` // and exits 1; a true condition is a no-op. Built on `process.exit`. (The // caller's `file:line` in the message rides on `#caller_location` — E4.1b.) // Expected exit code: 1. #import "modules/std.sx"; proc :: #import "modules/process.sx"; main :: () -> s32 { proc.assert(2 + 2 == 4, "arithmetic"); // passes → no-op print("first assert passed\n"); proc.assert(2 + 2 == 5, "two plus two is not five"); // fails → abort print("unreachable\n"); return 0; }