diff options
| author | Dave Gauer <[email protected]> | 2021-04-18 18:05:36 -0400 |
|---|---|---|
| committer | Dave Gauer <[email protected]> | 2021-04-18 18:05:36 -0400 |
| commit | 17a22adce10e016489feb243587f0bf80cdd2f76 (patch) | |
| tree | 6a784e4280213372d570d264433d4d92bcd903c3 /patches | |
| parent | 881db5eab22b2721be7fdab01286215c605cfcd0 (diff) | |
| download | ziglings-17a22adce10e016489feb243587f0bf80cdd2f76.tar.xz ziglings-17a22adce10e016489feb243587f0bf80cdd2f76.zip | |
add ex068 comptime 3
Diffstat (limited to 'patches')
| -rw-r--r-- | patches/patches/068_comptime3.patch | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/patches/patches/068_comptime3.patch b/patches/patches/068_comptime3.patch new file mode 100644 index 0000000..985f0e6 --- /dev/null +++ b/patches/patches/068_comptime3.patch @@ -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; |
