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:
Mike Kestner 2011-01-22 19:43:14 -06:00
parent 0c6b54c9d9
commit 02bac350eb

View file

@ -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 ();