Browse Source

Improved support for arrays in the marshaler.

pull/1/head
triton 12 years ago
parent
commit
2301f4c7a9
  1. 9
      src/Generator/Generators/CSharp/CSharpMarshal.cs

9
src/Generator/Generators/CSharp/CSharpMarshal.cs

@ -251,6 +251,15 @@ namespace CppSharp.Generators.CSharp @@ -251,6 +251,15 @@ namespace CppSharp.Generators.CSharp
return true;
}
public override bool VisitArrayType(ArrayType array, TypeQualifiers quals)
{
if (!VisitType(array, quals))
return false;
Context.Return.Write("null");
return true;
}
public bool VisitDelegateType(FunctionType function, string type)
{
Context.Return.Write("Marshal.GetFunctionPointerForDelegate({0})",

Loading…
Cancel
Save