From 223c473cf64845f0c0824375fa98ca51bad66fc1 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 25 Feb 2018 20:57:34 +0000 Subject: [PATCH] Demo fix --- build.bat | 3 +-- examples/demo.odin | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build.bat b/build.bat index fe99fb48d..c01424057 100644 --- a/build.bat +++ b/build.bat @@ -11,7 +11,7 @@ if %release_mode% EQU 0 ( rem Debug set compiler_flags=%compiler_flags% -Od -MDd -Z7 rem -DDISPLAY_TIMING ) else ( rem Release - set compiler_flags=%compiler_flags% -O2 -MT -Z7 + set compiler_flags=%compiler_flags% -O2 -MT -Z7 -DNO_ARRAY_BOUNDS_CHECK ) set compiler_warnings= ^ @@ -24,7 +24,6 @@ set compiler_warnings= ^ set compiler_includes= set libs= ^ kernel32.lib - rem "src\dyncall\lib\*.lib" set linker_flags= -incremental:no -opt:ref -subsystem:console diff --git a/examples/demo.odin b/examples/demo.odin index 008c8d79a..466eb625e 100644 --- a/examples/demo.odin +++ b/examples/demo.odin @@ -762,7 +762,7 @@ complete_switch :: proc() { main :: proc() { - when false { + when true { general_stuff(); default_struct_values(); union_type();