* FuncProcessor.cs:
* Structures/Parameter.cs: Avoid qualifying IntPtr fully ((a) it's unnecessary, since we have "using System;" already and (b) the namespace qualification is not portable to C++).
This commit is contained in:
parent
95a906647e
commit
fa0a7b5eec
2 changed files with 4 additions and 4 deletions
|
@ -150,19 +150,19 @@ namespace Bind
|
|||
|
||||
if (d.ReturnType.CurrentType.ToLower().Contains("void") && d.ReturnType.Pointer != 0)
|
||||
{
|
||||
d.ReturnType.QualifiedType = "System.IntPtr";
|
||||
d.ReturnType.QualifiedType = "IntPtr";
|
||||
d.ReturnType.WrapperType = WrapperTypes.GenericReturnType;
|
||||
}
|
||||
|
||||
if (d.ReturnType.CurrentType.ToLower().Contains("string"))
|
||||
{
|
||||
d.ReturnType.QualifiedType = "System.IntPtr";
|
||||
d.ReturnType.QualifiedType = "IntPtr";
|
||||
d.ReturnType.WrapperType = WrapperTypes.StringReturnType;
|
||||
}
|
||||
|
||||
if (d.ReturnType.CurrentType.ToLower() == "object")
|
||||
{
|
||||
d.ReturnType.QualifiedType = "System.IntPtr";
|
||||
d.ReturnType.QualifiedType = "IntPtr";
|
||||
d.ReturnType.WrapperType |= WrapperTypes.GenericReturnType;
|
||||
}
|
||||
|
||||
|
|
|
@ -610,7 +610,7 @@ namespace Bind.Structures
|
|||
{
|
||||
if (((Settings.Compatibility & Settings.Legacy.TurnVoidPointersToIntPtr) != Settings.Legacy.None) &&
|
||||
p.Pointer != 0 && p.CurrentType.Contains("void"))
|
||||
sb.Append("(System.IntPtr)");
|
||||
sb.Append("(IntPtr)");
|
||||
else
|
||||
{
|
||||
sb.Append("(");
|
||||
|
|
Loading…
Reference in a new issue