|
|
@ -272,7 +272,7 @@ namespace CppSharp.Generators.CSharp |
|
|
|
|
|
|
|
|
|
|
|
public override bool VisitClassDecl(Class @class) |
|
|
|
public override bool VisitClassDecl(Class @class) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (@class.IsIncomplete) |
|
|
|
if (@class.IsIncomplete && !@class.IsOpaque) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
if (@class.IsInterface) |
|
|
|
if (@class.IsInterface) |
|
|
@ -309,14 +309,11 @@ namespace CppSharp.Generators.CSharp |
|
|
|
|
|
|
|
|
|
|
|
PushBlock(BlockKind.Class); |
|
|
|
PushBlock(BlockKind.Class); |
|
|
|
GenerateDeclarationCommon(@class); |
|
|
|
GenerateDeclarationCommon(@class); |
|
|
|
|
|
|
|
|
|
|
|
GenerateClassSpecifier(@class); |
|
|
|
GenerateClassSpecifier(@class); |
|
|
|
|
|
|
|
|
|
|
|
NewLine(); |
|
|
|
NewLine(); |
|
|
|
WriteStartBraceIndent(); |
|
|
|
WriteStartBraceIndent(); |
|
|
|
|
|
|
|
|
|
|
|
if (!@class.IsOpaque) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (!@class.IsAbstractImpl) |
|
|
|
if (!@class.IsAbstractImpl) |
|
|
|
GenerateClassInternals(@class); |
|
|
|
GenerateClassInternals(@class); |
|
|
|
|
|
|
|
|
|
|
@ -364,7 +361,6 @@ namespace CppSharp.Generators.CSharp |
|
|
|
|
|
|
|
|
|
|
|
if (@class.IsDynamic) |
|
|
|
if (@class.IsDynamic) |
|
|
|
GenerateVTable(@class); |
|
|
|
GenerateVTable(@class); |
|
|
|
} |
|
|
|
|
|
|
|
exit: |
|
|
|
exit: |
|
|
|
WriteCloseBraceIndent(); |
|
|
|
WriteCloseBraceIndent(); |
|
|
|
PopBlock(NewLineKind.BeforeNextBlock); |
|
|
|
PopBlock(NewLineKind.BeforeNextBlock); |
|
|
|