mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
882 B
33 lines
882 B
using CppSharp.AST; |
|
using CppSharp.Generators; |
|
using CppSharp.Passes; |
|
using CppSharp.Utils; |
|
|
|
namespace CppSharp.Tests |
|
{ |
|
public class VTableTests : GeneratorTest |
|
{ |
|
public VTableTests(GeneratorKind kind) |
|
: base("VTables", kind) |
|
{ |
|
} |
|
|
|
public override void SetupPasses(Driver driver) |
|
{ |
|
driver.Options.GenerateVirtualTables = true; |
|
driver.TranslationUnitPasses.RenameDeclsUpperCase(RenameTargets.Any); |
|
driver.TranslationUnitPasses.AddPass(new FunctionToInstanceMethodPass()); |
|
} |
|
|
|
public override void Preprocess(Driver driver, ASTContext ctx) |
|
{ |
|
|
|
} |
|
|
|
public static void Main(string[] args) |
|
{ |
|
ConsoleDriver.Run(new VTableTests(GeneratorKind.CLI)); |
|
ConsoleDriver.Run(new VTableTests(GeneratorKind.CSharp)); |
|
} |
|
} |
|
}
|
|
|