Browse Source

Walk through typedefs when checking for void pointers.

pull/1/head
triton 13 years ago
parent
commit
4832d5d648
  1. 4
      src/Generator/Generators/CLI/CLIMarshal.cs

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

@ -50,9 +50,9 @@ namespace Cxxi.Generators.CLI
{ {
var pointee = pointer.Pointee; var pointee = pointer.Pointee;
if (pointee.IsPrimitiveType(PrimitiveType.Void)) if (pointee.IsPrimitiveType(PrimitiveType.Void, walkTypedefs: true))
{ {
Return.Write("IntPtr()"); Return.Write("IntPtr({0})", Context.ReturnVarName);
return true; return true;
} }

Loading…
Cancel
Save