From 4e4552186a6e261f4db5e335a97eb50f0940465d Mon Sep 17 00:00:00 2001 From: triton Date: Sun, 14 Jul 2013 19:15:02 +0100 Subject: [PATCH] Generators now have a Process method to be able to do any custom processing. --- src/Generator/Driver.cs | 2 ++ src/Generator/Generators/Generator.cs | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/src/Generator/Driver.cs b/src/Generator/Driver.cs index 202a04dd..1efdda87 100644 --- a/src/Generator/Driver.cs +++ b/src/Generator/Driver.cs @@ -115,6 +115,8 @@ namespace CppSharp { foreach (var pass in Passes.Passes) pass.VisitLibrary(Library); + + Generator.Process(); } public List GenerateCode() diff --git a/src/Generator/Generators/Generator.cs b/src/Generator/Generators/Generator.cs index e18ae651..e47acc6c 100644 --- a/src/Generator/Generators/Generator.cs +++ b/src/Generator/Generators/Generator.cs @@ -50,6 +50,13 @@ namespace CppSharp.Generators /// public abstract bool SetupPasses(PassBuilder builder); + /// + /// Setup any generator-specific processing here. + /// + public virtual void Process() + { + + } /// /// Generates the outputs.