Skip to content

Commit ac6be2e

Browse files
committed
Added generator-specific options from Embeddinator.
1 parent 73e458c commit ac6be2e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Generator/Options.cs

+13
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,19 @@ public bool DoAllModulesHaveLibraries() =>
210210
/// </summary>
211211
public HashSet<string> ExplicitlyPatchedVirtualFunctions { get; }
212212

213+
#endregion
214+
215+
#region Embeddinator options
216+
217+
// If true, will use unmanaged->managed thunks to call managed methods.
218+
// In this mode the JIT will generate specialized wrappers for marshaling
219+
// which will be faster but also lead to higher memory consumption.
220+
public bool UseUnmanagedThunks;
221+
222+
// If true, will generate support files alongside generated binding code.
223+
public bool GenerateSupportFiles = true;
224+
225+
#endregion
213226
}
214227

215228
public class InvalidOptionException : Exception

0 commit comments

Comments
 (0)