add ex068 comptime 3
This commit is contained in:
parent
4d8b40648e
commit
ec543ff49b
3 changed files with 120 additions and 0 deletions
8
patches/patches/068_comptime3.patch
Normal file
8
patches/patches/068_comptime3.patch
Normal file
|
|
@ -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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue