diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-04-18 18:05:36 -0400 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-04-18 18:05:36 -0400 |
commit | ec543ff49b5cbdc1c8fa3268a155a794ee30af49 (patch) | |
tree | 6a784e4280213372d570d264433d4d92bcd903c3 /patches | |
parent | 4d8b40648ecf90b9f27d2daf7d77f4e66efd5ea5 (diff) | |
download | ziglings-ec543ff49b5cbdc1c8fa3268a155a794ee30af49.tar.gz ziglings-ec543ff49b5cbdc1c8fa3268a155a794ee30af49.tar.bz2 ziglings-ec543ff49b5cbdc1c8fa3268a155a794ee30af49.tar.xz ziglings-ec543ff49b5cbdc1c8fa3268a155a794ee30af49.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; |