From ac6be2eccfc83bb64d138cf5af2993de1119b445 Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Wed, 1 Feb 2017 19:26:50 +0000 Subject: [PATCH] Added generator-specific options from Embeddinator. --- src/Generator/Options.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Generator/Options.cs b/src/Generator/Options.cs index 42ab2d21..9325003d 100644 --- a/src/Generator/Options.cs +++ b/src/Generator/Options.cs @@ -210,6 +210,19 @@ namespace CppSharp /// public HashSet ExplicitlyPatchedVirtualFunctions { get; } + #endregion + + #region Embeddinator options + + // If true, will use unmanaged->managed thunks to call managed methods. + // In this mode the JIT will generate specialized wrappers for marshaling + // which will be faster but also lead to higher memory consumption. + public bool UseUnmanagedThunks; + + // If true, will generate support files alongside generated binding code. + public bool GenerateSupportFiles = true; + + #endregion } public class InvalidOptionException : Exception