diff --git a/src/CppParser/ParserGen/ParserGen.cs b/src/CppParser/ParserGen/ParserGen.cs index b7cff34d..f068a71e 100644 --- a/src/CppParser/ParserGen/ParserGen.cs +++ b/src/CppParser/ParserGen/ParserGen.cs @@ -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[] { diff --git a/src/Generator.Tests/GeneratorTest.cs b/src/Generator.Tests/GeneratorTest.cs index 8c620927..d5dcc453 100644 --- a/src/Generator.Tests/GeneratorTest.cs +++ b/src/Generator.Tests/GeneratorTest.cs @@ -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"; diff --git a/src/Generator/Options.cs b/src/Generator/Options.cs index 46d05c8a..bd6d183d 100644 --- a/src/Generator/Options.cs +++ b/src/Generator/Options.cs @@ -94,7 +94,7 @@ namespace CppSharp /// public bool GenerateClassTemplates { get; set; } public bool GenerateInternalImports; - public bool GenerateSequentialLayout { get; set; } + public bool GenerateSequentialLayout { get; set; } = true; public bool UseHeaderDirectories; ///