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.