Moved address parameter to last place

This way, it is the last item on the evaluation stack before calling the
unmanaged function pointer. This simplifies the calli rewrite procedure.
This commit is contained in:
Stefanos A. 2013-11-25 00:18:43 +01:00
parent 1e6a819b07
commit c8e753d2da

View file

@ -1149,14 +1149,15 @@ namespace Bind
}
sb.Append(">");
}
sb.AppendFormat("(EntryPoints[{0}]", d.Slot);
sb.Append("(");
var parameter_string = GetInvocationString(d.Parameters, respect_wrappers);
if (!String.IsNullOrEmpty(parameter_string))
{
sb.Append(", ");
sb.Append(parameter_string);
sb.Append(", ");
}
sb.AppendFormat("EntryPoints[{0}]", d.Slot);
sb.Append(")");
return sb.ToString();