From 17a22adce10e016489feb243587f0bf80cdd2f76 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sun, 18 Apr 2021 18:05:36 -0400 Subject: add ex068 comptime 3 --- patches/patches/068_comptime3.patch | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 patches/patches/068_comptime3.patch (limited to 'patches') 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; -- cgit v1.2.3-70-g09d2