Browse Source

Check for type maps when visiting pointer types in C++ type printer.

pull/1360/head
João Matos 5 years ago
parent
commit
48a8a9a40f
  1. 4
      src/Generator/Generators/C/CppTypePrinter.cs

4
src/Generator/Generators/C/CppTypePrinter.cs

@ -127,6 +127,10 @@ namespace CppSharp.Generators.C @@ -127,6 +127,10 @@ namespace CppSharp.Generators.C
public override TypePrinterResult VisitPointerType(PointerType pointer,
TypeQualifiers quals)
{
TypePrinterResult result;
if (FindTypeMap(pointer, out result))
return result;
var pointeeType = pointer.Pointee.Visit(this, pointer.QualifiedPointee.Qualifiers);
if (pointeeType.TypeMap != null)
return pointeeType;

Loading…
Cancel
Save