mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 17:55:27 +00:00
2005-08-04 Mike Kestner <mkestner@novell.com>
* generator/Ctor.cs : call Finish and HandleException for static ctor method bodies. [Fixes #75493] svn path=/trunk/gtk-sharp/; revision=47998
This commit is contained in:
parent
e299e65c8a
commit
3e19a1d102
|
@ -1,3 +1,8 @@
|
|||
2005-08-04 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* generator/Ctor.cs : call Finish and HandleException for static ctor
|
||||
method bodies. [Fixes #75493]
|
||||
|
||||
2005-08-03 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* bootstrap : use gnome and vfs 2.10 api.
|
||||
|
|
|
@ -76,12 +76,15 @@ namespace GtkSharp.Generation {
|
|||
|
||||
Body.Initialize(gen_info, false, false, "");
|
||||
|
||||
sw.Write("\t\t\treturn ");
|
||||
sw.Write("\t\t\t" + name + " result = ");
|
||||
if (container_type is StructBase)
|
||||
sw.Write ("{0}.New (", name);
|
||||
else
|
||||
sw.Write ("new {0} (", name);
|
||||
sw.WriteLine (CName + "(" + Body.GetCallString (false) + "));");
|
||||
Body.Finish (sw, "");
|
||||
Body.HandleException (sw, "");
|
||||
sw.WriteLine ("\t\t\treturn result;");
|
||||
}
|
||||
|
||||
public void Generate (GenerationInfo gen_info)
|
||||
|
|
Loading…
Reference in a new issue