mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 16:15:40 +00:00
Avoid collisions in generated variable usage.
* generator/CallbackGen.cs: s/result/__result/ for temporary callback return values in the native invoker generation.
This commit is contained in:
parent
0c6b54c9d9
commit
02bac350eb
|
@ -173,10 +173,10 @@ namespace GtkSharp.Generation {
|
|||
if (retval.IsVoid)
|
||||
sw.WriteLine ("\t\t\t" + call + ";");
|
||||
else
|
||||
sw.WriteLine ("\t\t\t" + retval.CSType + " result = " + retval.FromNative (call) + ";");
|
||||
sw.WriteLine ("\t\t\t" + retval.CSType + " __result = " + retval.FromNative (call) + ";");
|
||||
body.Finish (sw, String.Empty);
|
||||
if (!retval.IsVoid)
|
||||
sw.WriteLine ("\t\t\treturn result;");
|
||||
sw.WriteLine ("\t\t\treturn __result;");
|
||||
sw.WriteLine ("\t\t}");
|
||||
sw.WriteLine ("\t}");
|
||||
sw.WriteLine ();
|
||||
|
|
Loading…
Reference in a new issue