summaryrefslogtreecommitdiffstatshomepage
path: root/patches
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-04-18 18:05:36 -0400
committerDave Gauer <dave@ratfactor.com>2021-04-18 18:05:36 -0400
commit17a22adce10e016489feb243587f0bf80cdd2f76 (patch)
tree6a784e4280213372d570d264433d4d92bcd903c3 /patches
parent881db5eab22b2721be7fdab01286215c605cfcd0 (diff)
add ex068 comptime 3
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/068_comptime3.patch8
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;