Browse Source

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

wip
João Matos 5 years ago
parent
commit
04422c818a
  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