diff options
author | Juerg Billeter <j@bitron.ch> | 2007-09-01 19:07:10 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2007-09-01 19:07:10 +0000 |
commit | 8f52fd592dd4985b21af6887ca0aac68a3ae4133 (patch) | |
tree | ca41e00f686e804e80cbd2fdb4a65a112f633491 /compiler | |
parent | 46044c7e0658da27db42683ae45ae41cee25a07d (diff) | |
download | vala-8f52fd592dd4985b21af6887ca0aac68a3ae4133.tar.gz |
fix implicit casts to support non-GObject classes, enable run-time checks
2007-09-01 Juerg Billeter <j@bitron.ch>
* 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
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/valacompiler.vala | 6 |
1 files changed, 3 insertions, 3 deletions
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; |