Browse Source

Added `CCodeGenerator.GenerateClassBody` extension point.

pull/1174/head
Joao Matos 7 years ago committed by João Matos
parent
commit
657f894bb2
  1. 7
      src/Generator/Generators/C/CCodeGenerator.cs

7
src/Generator/Generators/C/CCodeGenerator.cs

@ -234,7 +234,7 @@ namespace CppSharp.Generators.C
NewLine(); NewLine();
WriteOpenBraceAndIndent(); WriteOpenBraceAndIndent();
VisitDeclContext(@class); GenerateClassBody(@class);
Unindent(); Unindent();
WriteLine("};"); WriteLine("};");
@ -244,6 +244,11 @@ namespace CppSharp.Generators.C
return true; return true;
} }
public virtual bool GenerateClassBody(Class @class)
{
return VisitDeclContext(@class);
}
public override bool VisitTypedefNameDecl(TypedefNameDecl typedef) public override bool VisitTypedefNameDecl(TypedefNameDecl typedef)
{ {
return true; return true;

Loading…
Cancel
Save