diff --git a/src/Generator/Generators/C/CppTypePrinter.cs b/src/Generator/Generators/C/CppTypePrinter.cs index 6258ca4d..f8ed951d 100644 --- a/src/Generator/Generators/C/CppTypePrinter.cs +++ b/src/Generator/Generators/C/CppTypePrinter.cs @@ -511,6 +511,9 @@ namespace CppSharp.Generators.C public override TypePrinterResult VisitClassDecl(Class @class) { + if (@class.CompleteDeclaration != null) + return VisitClassDecl(@class.CompleteDeclaration as Class); + return VisitDeclaration(@class); }