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.
28 lines
696 B
28 lines
696 B
using CppSharp.Generators; |
|
using CppSharp.Utils; |
|
|
|
namespace CppSharp.Tests |
|
{ |
|
public class Hello : LibraryTest |
|
{ |
|
public Hello(LanguageGeneratorKind kind) |
|
: base("Hello", kind) |
|
{ |
|
} |
|
|
|
public override void Preprocess(Driver driver, Library lib) |
|
{ |
|
lib.SetClassAsValueType("Bar"); |
|
lib.SetClassAsValueType("Bar2"); |
|
} |
|
|
|
static class Program |
|
{ |
|
public static void Main(string[] args) |
|
{ |
|
ConsoleDriver.Run(new Hello(LanguageGeneratorKind.CPlusPlusCLI)); |
|
ConsoleDriver.Run(new Hello(LanguageGeneratorKind.CSharp)); |
|
} |
|
} |
|
} |
|
}
|
|
|