Tools and libraries to glue C/C++ APIs to high-level languages
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.
 
 
 
 
 

30 lines
800 B

using CppSharp.AST;
using CppSharp.Generators;
using CppSharp.Utils;
namespace CppSharp.Tests
{
public class Basic : LibraryTest
{
public Basic(LanguageGeneratorKind kind)
: base("Basic", kind)
{
}
public override void Preprocess(Driver driver, Library lib)
{
lib.SetClassAsValueType("Bar");
lib.SetClassAsValueType("Bar2");
lib.SetMethodParameterUsage("Hello", "TestPrimitiveOut", 1, ParameterUsage.Out);
}
static class Program
{
public static void Main(string[] args)
{
ConsoleDriver.Run(new Basic(LanguageGeneratorKind.CLI));
ConsoleDriver.Run(new Basic(LanguageGeneratorKind.CSharp));
}
}
}
}