aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorDave Gauer <[email protected]>2021-04-13 20:47:05 -0400
committerDave Gauer <[email protected]>2021-04-13 20:47:05 -0400
commite23eba236a2ffa3ecd8a7ae88a523de10bf97e3b (patch)
treecbbae2e2e087218dc3e2a4a269343a65d5cc6684 /build.zig
parente933c8efe14a99390466cd9711ca05cc7ede73a7 (diff)
downloadziglings-e23eba236a2ffa3ecd8a7ae88a523de10bf97e3b.tar.xz
ziglings-e23eba236a2ffa3ecd8a7ae88a523de10bf97e3b.zip
Add ex066, the first comptime explanation
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 50fde90..0eaec0b 100644
--- a/build.zig
+++ b/build.zig
@@ -331,6 +331,11 @@ const exercises = [_]Exercise{
.main_file = "065_builtins2.zig",
.output = "A Narcissus loves all Narcissuses. He has room in his heart for: me myself.",
},
+ .{
+ .main_file = "066_comptime.zig",
+ .output = "const_int=12345, const_float=987.654, var_int=54321, var_float=456.789",
+ .hint = "It may help to read this one out loud to your favorite stuffed animal until it sinks in completely."
+ },
};
/// Check the zig version to make sure it can compile the examples properly.