Fixed a regression where pure IntPtr parameters (size etc etc) obtained 'object' overloads.

This commit is contained in:
the_fiddler 2007-10-31 17:42:29 +00:00
parent f7a8108458
commit c54fcdf724
2 changed files with 4 additions and 6 deletions

View file

@ -485,10 +485,8 @@ namespace Bind.Structures
protected virtual void TranslateParameters() protected virtual void TranslateParameters()
{ {
//if (this.Name.Contains("VertexPointer")) // Iterates through all parameters, calling the Parameter.Translate() function.
//{
// Console.WriteLine();
//}
for (int i = 0; i < Parameters.Count; i++) for (int i = 0; i < Parameters.Count; i++)
{ {
Parameters[i] = Parameter.Translate(Parameters[i], this.Category); Parameters[i] = Parameter.Translate(Parameters[i], this.Category);

View file

@ -345,7 +345,7 @@ namespace Bind.Structures
// p.CurrentType = CSTypes[p.CurrentType]; // p.CurrentType = CSTypes[p.CurrentType];
// Translate pointer parameters // Translate pointer parameters
if (p.Pointer || p.CurrentType == "IntPtr") if (p.Pointer)/* || p.CurrentType == "IntPtr")*/
{ {
p.WrapperType = WrapperTypes.ArrayParameter; p.WrapperType = WrapperTypes.ArrayParameter;
@ -360,7 +360,7 @@ namespace Bind.Structures
p.Pointer = false; p.Pointer = false;
p.WrapperType = WrapperTypes.None; p.WrapperType = WrapperTypes.None;
} }
else if (p.CurrentType.ToLower().Contains("void") || p.CurrentType.Contains("IntPtr")) else if (p.CurrentType.ToLower().Contains("void")) /*|| p.CurrentType.Contains("IntPtr"))*/
{ {
p.CurrentType = "IntPtr"; p.CurrentType = "IntPtr";
p.Pointer = false; p.Pointer = false;