#equivalent to C's #if?
1 messages · Page 1 of 1 (latest)
Zig's normal if and switch will automatically behave like that if the condition is a constant.
is there a way to ensure it behaves this way?
I believe you can make it explicit with if (comptime cond) {} and switch (comptime cond).
Though I've not seen much code do that.
yep! it works, thank you so much
You're welcome o7 😄
