Browse Source

Desugar pointer types when checking for primitive types while marshaling.

pull/28/head
triton 12 years ago
parent
commit
e650d7decf
  1. 2
      src/Generator/Generators/CSharp/CSharpMarshal.cs

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

@ -136,7 +136,7 @@ namespace CppSharp.Generators.CSharp @@ -136,7 +136,7 @@ namespace CppSharp.Generators.CSharp
}
PrimitiveType primitive;
if (pointee.IsPrimitiveType(out primitive))
if (pointee.Desugar().IsPrimitiveType(out primitive))
{
Context.Return.Write(Context.ReturnVarName);
return true;

Loading…
Cancel
Save