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:
parent
8f1c4ce766
commit
7dd24ae681
2 changed files with 7 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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 + ";");
|
||||
|
|
Loading…
Add table
Reference in a new issue