Browse Source

Fixed marshaling of pointers to classes in CLI generator.

pull/49/merge
triton 12 years ago
parent
commit
05c020f301
  1. 9
      src/Generator/Generators/CLI/CLIMarshal.cs

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

@ -65,6 +65,15 @@ namespace CppSharp.Generators.CLI @@ -65,6 +65,15 @@ namespace CppSharp.Generators.CLI
return true;
}
Class @class;
if (pointee.Desugar().IsTagDecl(out @class))
{
var instance = (pointer.IsReference) ? "&" + Context.ReturnVarName
: Context.ReturnVarName;
WriteClassInstance(@class, instance);
return true;
}
if (!pointee.Visit(this, quals))
return false;

Loading…
Cancel
Save