aboutsummaryrefslogtreecommitdiff
path: root/std/debug.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-02-02 17:09:27 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-02-02 17:09:27 -0500
commitc0b37e8514a26f56e3596f86b01771b1ae2bf299 (patch)
treeb24c7fd04b2e8582d4e79455455e740ef58ca864 /std/debug.zig
parent8b1c6d8b76ad1861f963fc7a2a079af5d8729a70 (diff)
downloadzig-c0b37e8514a26f56e3596f86b01771b1ae2bf299.tar.gz
zig-c0b37e8514a26f56e3596f86b01771b1ae2bf299.zip
add try expression
See #83
Diffstat (limited to 'std/debug.zig')
-rw-r--r--std/debug.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/debug.zig b/std/debug.zig
index 15aebf3a23..85e5503fa8 100644
--- a/std/debug.zig
+++ b/std/debug.zig
@@ -9,8 +9,8 @@ error MissingDebugInfo;
error InvalidDebugInfo;
error UnsupportedDebugInfo;
-pub fn assert(b: bool) {
- if (!b) @unreachable()
+pub fn assert(ok: bool) {
+ if (!ok) @unreachable()
}
pub fn printStackTrace() -> %void {