mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-03 17:03:30 +02:00
add ex068 comptime 3
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
46c46
|
||||
< if (my_scale == 0) @compileError("Scale 1:0 is not valid!");
|
||||
---
|
||||
> if (my_scale == 0) my_scale = 1; //@compileError("Scale 1:0 is not valid!");
|
||||
72c72
|
||||
< var scale: u32 = undefined;
|
||||
---
|
||||
> comptime var scale: u32 = undefined;
|
||||
Reference in New Issue
Block a user