2002-08-31 Rachel Hestilow <hestilow@ximian.com>

* generator/Method.cs: Re-enable "if null then new" behavior
	for Opaques.

svn path=/trunk/gtk-sharp/; revision=7163
This commit is contained in:
Rachel Hestilow 2002-08-31 19:25:35 +00:00
parent 8f1c4ce766
commit 7dd24ae681
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-08-31 Rachel Hestilow <hestilow@ximian.com>
* generator/Method.cs: Re-enable "if null then new" behavior
for Opaques.
2002-08-29 Rachel Hestilow <hestilow@ximian.com>
* glib/DelegateWrapper.cs: Forgot to add this.

View File

@ -384,7 +384,8 @@ namespace GtkSharp.Generation {
{
sw.WriteLine(m_ret + " raw_ret = " + cname + call + ";");
sw.WriteLine(indent +"\t\t\t" + s_ret + " ret = " + SymbolTable.FromNativeReturn(rettype, "raw_ret") + ";");
// sw.WriteLine(indent + "\t\t\tif (ret == null) ret = new " + s_ret + "(raw_ret);");
if (SymbolTable.IsOpaque (rettype))
sw.WriteLine(indent + "\t\t\tif (ret == null) ret = new " + s_ret + "(raw_ret);");
}
else {
sw.WriteLine(m_ret + " raw_ret = " + cname + call + ";");