Browse Source

Generators now have a Process method to be able to do any custom processing.

pull/12/merge
triton 13 years ago
parent
commit
4e4552186a
  1. 2
      src/Generator/Driver.cs
  2. 7
      src/Generator/Generators/Generator.cs

2
src/Generator/Driver.cs

@ -115,6 +115,8 @@ namespace CppSharp @@ -115,6 +115,8 @@ namespace CppSharp
{
foreach (var pass in Passes.Passes)
pass.VisitLibrary(Library);
Generator.Process();
}
public List<GeneratorOutput> GenerateCode()

7
src/Generator/Generators/Generator.cs

@ -50,6 +50,13 @@ namespace CppSharp.Generators @@ -50,6 +50,13 @@ namespace CppSharp.Generators
/// </summary>
public abstract bool SetupPasses(PassBuilder builder);
/// <summary>
/// Setup any generator-specific processing here.
/// </summary>
public virtual void Process()
{
}
/// <summary>
/// Generates the outputs.

Loading…
Cancel
Save