Browse Source

Fixed marshaling of function pointer typedefs in CLI generator.

pull/49/head
triton 12 years ago committed by Dimitar Dobrev
parent
commit
3771834bdd
  1. 4
      src/Generator/Generators/CLI/CLIMarshal.cs

4
src/Generator/Generators/CLI/CLIMarshal.cs

@ -429,9 +429,9 @@ namespace CppSharp.Generators.CLI @@ -429,9 +429,9 @@ namespace CppSharp.Generators.CLI
}
FunctionType func;
if (decl.Type.IsPointerTo<FunctionType>(out func))
if (decl.Type.IsPointerTo(out func))
{
VisitDelegateType(func, typedef.Declaration.OriginalName);
VisitDelegateType(func, "::" + typedef.Declaration.QualifiedOriginalName);
return true;
}

Loading…
Cancel
Save