From 8f52fd592dd4985b21af6887ca0aac68a3ae4133 Mon Sep 17 00:00:00 2001 From: Juerg Billeter Date: Sat, 1 Sep 2007 19:07:10 +0000 Subject: fix implicit casts to support non-GObject classes, enable run-time checks 2007-09-01 Juerg Billeter * vala/valalockable.vala, gobject/valacodegenerator.vala, gobject/valacodegeneratorassignment.vala, gobject/valacodegeneratorclass.vala, gobject/valacodegeneratorinvocationexpression.vala, gobject/valacodegeneratormemberaccess.vala, gobject/valacodegeneratormethod.vala, compiler/valacompiler.vala: fix implicit casts to support non-GObject classes, enable run-time checks by default, fixes bug 472446 svn path=/trunk/; revision=567 --- compiler/valacompiler.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler') diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index 93ac87802..126b7c805 100644 --- a/compiler/valacompiler.vala +++ b/compiler/valacompiler.vala @@ -41,7 +41,7 @@ class Vala.Compiler : Object { static bool thread; static int optlevel; static bool disable_assert; - static bool enable_checking; + static bool disable_checking; static string cc_command; [NoArrayLength] static string[] cc_options; @@ -63,7 +63,7 @@ class Vala.Compiler : Object { { "thread", 0, 0, OptionArg.NONE, ref thread, "Enable multithreading support", null }, { "optimize", 'O', 0, OptionArg.INT, ref optlevel, "Optimization level", "OPTLEVEL" }, { "disable-assert", 0, 0, OptionArg.NONE, ref disable_assert, "Disable assertions", null }, - { "enable-checking", 0, 0, OptionArg.NONE, ref enable_checking, "Enable run-time checks", null }, + { "disable-checking", 0, 0, OptionArg.NONE, ref disable_checking, "Disable run-time checks", null }, { "cc", 0, 0, OptionArg.STRING, out cc_command, "Use COMMAND as C compiler command", "COMMAND" }, { "Xcc", 'X', 0, OptionArg.STRING_ARRAY, out cc_options, "Pass OPTION to the C compiler", "OPTION..." }, { "save-temps", 0, 0, OptionArg.NONE, out save_temps, "Keep temporary files", null }, @@ -159,7 +159,7 @@ class Vala.Compiler : Object { context.library = library; context.memory_management = !disable_memory_management; context.assert = !disable_assert; - context.checking = enable_checking; + context.checking = !disable_checking; context.ccode_only = ccode_only; context.compile_only = compile_only; -- cgit v1.2.1