1#exe {
2-Mroot=main.zig
3#}
4
5#write main.zig {
6pub fn main() void {}
7comptime {
8 @compileError("this is an error");
9}
10comptime {
11 @compileLog("this is a log");
12}
13#}
14#update "compile error"
15#check errors {
16main.zig:3:5: error: this is an error
17
18Compile Log Output:
19@as(*const [13:0]u8, "this is a log")
20#}
21
22#write main.zig {
23pub fn main() void {}
24comptime {
25 //@compileError("this is an error");
26}
27comptime {
28 @compileLog("this is a log");
29}
30#}
31#update "remove the compile error"
32#check errors {
33main.zig:6:5: error: found compile log statement
34
35Compile Log Output:
36@as(*const [13:0]u8, "this is a log")
37#}