mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-16 11:34:47 +02:00
2008-05-27 Mike Kestner <mkestner@novell.com>
* generator/Method.cs (GenerateBody): when generating value type methods, we should demarshal the 'this' memory before any ref or out parameters in the event that someone passes 'this' as a param. That will ensure that an updated value coming back from the native side ends up in the memory location. svn path=/trunk/gtk-sharp/; revision=104166
This commit is contained in:
parent
d9721b63dc
commit
64ff72c07f
@ -1,3 +1,11 @@
|
|||||||
|
2008-05-27 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
|
* generator/Method.cs (GenerateBody): when generating value type
|
||||||
|
methods, we should demarshal the 'this' memory before any ref or
|
||||||
|
out parameters in the event that someone passes 'this' as a param.
|
||||||
|
That will ensure that an updated value coming back from the native
|
||||||
|
side ends up in the memory location.
|
||||||
|
|
||||||
2008-05-22 Mike Kestner <mkestner@novell.com>
|
2008-05-22 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
* gtk/Widget.custom: guard against MissingIntPtrCtorException in
|
* gtk/Widget.custom: guard against MissingIntPtrCtorException in
|
||||||
|
@ -285,9 +285,9 @@ namespace GtkSharp.Generation {
|
|||||||
sw.WriteLine(indent + "\t\t\t" + retval.CSType + " ret = " + retval.FromNative ("raw_ret") + ";");
|
sw.WriteLine(indent + "\t\t\t" + retval.CSType + " ret = " + retval.FromNative ("raw_ret") + ";");
|
||||||
}
|
}
|
||||||
|
|
||||||
Body.Finish (sw, indent);
|
|
||||||
if (!IsStatic && implementor != null)
|
if (!IsStatic && implementor != null)
|
||||||
implementor.Finish (sw, indent + "\t\t\t");
|
implementor.Finish (sw, indent + "\t\t\t");
|
||||||
|
Body.Finish (sw, indent);
|
||||||
Body.HandleException (sw, indent);
|
Body.HandleException (sw, indent);
|
||||||
|
|
||||||
if (is_get && Parameters.Count > 0)
|
if (is_get && Parameters.Count > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user