Browse Source

Added a workaround for printing non-function member pointers types.

pull/560/head
triton 10 years ago
parent
commit
de74b648f2
  1. 7
      src/Generator/Generators/CSharp/CSharpTypePrinter.cs

7
src/Generator/Generators/CSharp/CSharpTypePrinter.cs

@ -292,9 +292,12 @@ namespace CppSharp.Generators.CSharp @@ -292,9 +292,12 @@ namespace CppSharp.Generators.CSharp
{
FunctionType functionType;
if (member.IsPointerTo(out functionType))
{
return functionType.Visit(this, quals);
}
// TODO: Non-function member pointer types are tricky to support.
// Re-visit this.
return "global::System.IntPtr";
throw new InvalidOperationException(
"A function pointer not pointing to a function type.");
}

Loading…
Cancel
Save