Browse Source

Change `GenerateSequentialLayout` default value to `true`

pull/1544/head
josetr 5 years ago
parent
commit
7446ed2927
  1. 1
      src/CppParser/ParserGen/ParserGen.cs
  2. 1
      src/Generator.Tests/GeneratorTest.cs
  3. 2
      src/Generator/Options.cs

1
src/CppParser/ParserGen/ParserGen.cs

@ -52,7 +52,6 @@ namespace CppSharp @@ -52,7 +52,6 @@ namespace CppSharp
var options = driver.Options;
options.GeneratorKind = Kind;
options.CommentKind = CommentKind.BCPLSlash;
options.GenerateSequentialLayout = true;
var parserModule = options.AddModule("CppSharp.CppParser");
parserModule.Headers.AddRange(new[]
{

1
src/Generator.Tests/GeneratorTest.cs

@ -27,7 +27,6 @@ namespace CppSharp.Utils @@ -27,7 +27,6 @@ namespace CppSharp.Utils
options.OutputDir = Path.Combine(GetOutputDirectory(), "build", "gen", name);
options.Quiet = true;
options.GenerateDebugOutput = true;
options.GenerateSequentialLayout = true;
var testModule = options.AddModule(name);
testModule.SharedLibraryName = $"{name}.Native";

2
src/Generator/Options.cs

@ -94,7 +94,7 @@ namespace CppSharp @@ -94,7 +94,7 @@ namespace CppSharp
/// </value>
public bool GenerateClassTemplates { get; set; }
public bool GenerateInternalImports;
public bool GenerateSequentialLayout { get; set; }
public bool GenerateSequentialLayout { get; set; } = true;
public bool UseHeaderDirectories;
/// <summary>

Loading…
Cancel
Save