Skip to content

Commit

Permalink
Added generator-specific options from Embeddinator.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Feb 1, 2017
1 parent 73e458c commit ac6be2e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Generator/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,19 @@ public string TemplatesLibraryName
/// </summary>
public HashSet<string> 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
Expand Down

0 comments on commit ac6be2e

Please sign in to comment.