Browse Source

Added a fake option for multiple inheritance so that the build stays healthy.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/68/head
Dimitar Dobrev 13 years ago
parent
commit
d7a91d1719
  1. 2
      src/Generator/Driver.cs
  2. 5
      tests/CSharpTemp/CSharpTemp.cs

2
src/Generator/Driver.cs

@ -153,6 +153,7 @@ namespace CppSharp
TranslationUnitPasses.AddPass(new CheckDuplicatedNamesPass()); TranslationUnitPasses.AddPass(new CheckDuplicatedNamesPass());
if (Options.GenerateAbstractImpls) if (Options.GenerateAbstractImpls)
TranslationUnitPasses.AddPass(new GenerateAbstractImplementationsPass()); TranslationUnitPasses.AddPass(new GenerateAbstractImplementationsPass());
if (Options.GenerateInterfacesForMultipleInheritance)
TranslationUnitPasses.AddPass(new MultipleInheritancePass()); TranslationUnitPasses.AddPass(new MultipleInheritancePass());
} }
@ -272,6 +273,7 @@ namespace CppSharp
public bool GeneratePartialClasses; public bool GeneratePartialClasses;
public bool GenerateVirtualTables; public bool GenerateVirtualTables;
public bool GenerateAbstractImpls; public bool GenerateAbstractImpls;
public bool GenerateInterfacesForMultipleInheritance;
public bool GenerateInternalImports; public bool GenerateInternalImports;
public string IncludePrefix; public string IncludePrefix;
public bool WriteOnlyWhenChanged; public bool WriteOnlyWhenChanged;

5
tests/CSharpTemp/CSharpTemp.cs

@ -10,6 +10,11 @@ namespace CppSharp.Tests
{ {
} }
public override void SetupPasses(Driver driver)
{
driver.Options.GenerateInterfacesForMultipleInheritance = true;
}
static class Program static class Program
{ {
public static void Main(string[] args) public static void Main(string[] args)

Loading…
Cancel
Save