Browse Source

Fixed marshaling of pointer to primitive types.

pull/1/head
triton 12 years ago
parent
commit
74a7b5bd37
  1. 5
      src/Generator/Generators/CLI/CLIMarshal.cs

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

@ -74,7 +74,10 @@ namespace Cxxi.Generators.CLI @@ -74,7 +74,10 @@ namespace Cxxi.Generators.CLI
PrimitiveType primitive;
if (pointee.IsPrimitiveType(out primitive, walkTypedefs: true))
Return.Write("*");
{
Return.Write("IntPtr({0})", Context.ReturnVarName);
return true;
}
if (!pointee.Visit(this, quals))
return false;

Loading…
Cancel
Save